10 lines
546 B
Plaintext
10 lines
546 B
Plaintext
<% if @field_name == "page" %>
|
|
<div id="e_papers_data">
|
|
<div class="control-group input-content">
|
|
<label class="control-label muted" for="criteria_id"><%=t("e_paper.criteria_title")%> :</label>
|
|
<div class="controls">
|
|
<%= select_tag("#{@field_name}[custom_data_field][criteria_id]", options_for_select(([[t("e_paper.all_criteria"), "all"]] + PaperCriteria.all.desc(:start_date).map{|criteria| [criteria.title, criteria.id.to_s]}), (@custom_data_field["criteria_id"] rescue nil)), :id=>"criteria_id" )%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %> |