Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 55_3.14_sendEmailsUI
- Loading branch information
Showing
46 changed files
with
1,167 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ deploy: | |
run: | ||
- rake db:schema:load | ||
- rake db:seed | ||
- rake db:populate_sample_data | ||
- restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
<%- model_class = ApplicationLetter -%> | ||
<div class="page-header"> | ||
<h1><%=t '.title', :default => model_class.model_name.human(:count => model_class.count).titleize %></h1> | ||
<h1><%= t '.title', :default => model_class.model_name.human(:count => model_class.count).titleize %></h1> | ||
</div> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th><%= model_class.human_attribute_name(:id) %></th> | ||
<th><%= model_class.human_attribute_name(:motivation) %></th> | ||
<th><%= model_class.human_attribute_name(:user_id) %></th> | ||
<th><%= model_class.human_attribute_name(:event_id) %></th> | ||
<th><%= model_class.human_attribute_name(:created_at) %></th> | ||
<th><%=t '.actions', :default => t("helpers.actions") %></th> | ||
</tr> | ||
<tr> | ||
<th><%= Event.model_name.human(:count => model_class.count).titleize %></th> | ||
<th><%= model_class.human_attribute_name(:status) %></th> | ||
<th><%= t '.actions', :default => t("helpers.actions") %></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% @application_letters.each do |application| %> | ||
<% if can? :destroy, application %> | ||
<tr> | ||
<td><%= link_to application.id, application_letter_path(application) %></td> | ||
<td><%= application.motivation %></td> | ||
<td><%= application.user_id %></td> | ||
<td><%= application.event_id %></td> | ||
<td><%=l application.created_at %></td> | ||
<td> | ||
<%= link_to t('.edit', :default => t("helpers.links.edit")), | ||
edit_application_letter_path(application), :class => 'btn btn-default btn-xs' %> | ||
<%= link_to t('.destroy', :default => t("helpers.links.destroy")), | ||
application_letter_path(application), | ||
:method => :delete, | ||
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, | ||
:class => 'btn btn-xs btn-danger' %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
<% end %> | ||
<% @application_letters.each do |application| %> | ||
<tr> | ||
<td><%= link_to application.event.name, event_path(application.event) %></td> | ||
<td><%= application.status_type %></td> | ||
<td> | ||
<% if not application.after_deadline? %> | ||
<%= link_to t('.edit', :default => t("helpers.links.edit")), | ||
edit_application_letter_path(application), :class => 'btn btn-default btn-xs' %> | ||
<%= link_to t('.destroy', :default => t("helpers.links.destroy")), | ||
application_letter_path(application), | ||
:method => :delete, | ||
:data => {:confirm => t('.confirm', :default => t("application_letters.confirm_deletion", :default => 'Are you sure?'))}, | ||
:class => 'btn btn-xs btn-danger' %> | ||
<% end %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.