Skip to content

Commit

Permalink
cambios nico casteos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico committed Dec 26, 2024
1 parent cd3966a commit 40002d3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
import net.lacnic.elections.adminweb.app.AppContext;
import net.lacnic.elections.domain.Email;


public class EmailsListPanel extends Panel {

private static final long serialVersionUID = -7217245542954325281L;

private List<Email> emailsList;


public EmailsListPanel(String id, Long electionId, boolean all) {
super(id);
if (electionId == 0) {
Expand All @@ -44,7 +42,8 @@ private void init(List<Email> emailsList) {
protected void populateItem(ListItem<Email> item) {
final Email currentEmail = item.getModelObject();
try {
item.add(new Label("sent", currentEmail.getSent() ? getString("messageListSentYes") : getString("messageListSentNo")));
String message = currentEmail.getSent() ? getString("messageListSentYes") : getString("messageListSentNo");
item.add(new Label("sent", message));
item.add(new Label("recipients", currentEmail.getRecipients()));
item.add(new Label("templateType", currentEmail.getTemplateType()));
item.add(new Label("subject", currentEmail.getSubject()));
Expand All @@ -60,7 +59,6 @@ protected void populateItem(ListItem<Email> item) {
}
}


public List<Email> getEmailsList() {
return emailsList;
}
Expand Down

0 comments on commit 40002d3

Please sign in to comment.