parent
943df643aa
commit
d2f4b38eb6
@ -1,11 +1,17 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
function submitContestNews()
|
||||||
|
{
|
||||||
|
if(regexTitle() && regexDescription())
|
||||||
|
{
|
||||||
|
$("#contestnotifications-form").submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<%= labelled_form_for @contestnotification,
|
<%= labelled_form_for @contestnotification,
|
||||||
:url => contest_contestnotifications_path(@contest),
|
:url => contest_contestnotifications_path(@contest),
|
||||||
:html => { :id => 'contestnotifications-form', :multipart => true } do |f| %>
|
:html => { :id => 'contestnotifications-form', :multipart => true } do |f| %>
|
||||||
<%= render :partial => 'contestnotifications/form', :locals => { :f => f } %>
|
<%= render :partial => 'contestnotifications/form', :locals => { :f => f } %>
|
||||||
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
|
<input type="button" onclick="submitContestNews();" class="enterprise" value="<%= l(:button_create)%>"/>
|
||||||
<input type="button" onclick="$('#add-contestnotifications').hide(); return false;" class="enterprise" value="<%= l(:button_cancel)%>"/>
|
<%= link_to l(:button_cancel), contest_contestnotifications_path(@contest.id) %>
|
||||||
|
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<div id="preview" class="wiki"></div>
|
<div id="preview" class="wiki"></div>
|
||||||
|
Loading…
Reference in new issue