Created
March 16, 2014 09:15
-
-
Save axilaris/9580534 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <%= form_for(@country) do |f| %> | |
| <% if @country.errors.any? %> | |
| <div id="error_explanation"> | |
| <h2><%= pluralize(@country.errors.count, "error") %> prohibited this country from being saved:</h2> | |
| <ul> | |
| <% @country.errors.full_messages.each do |msg| %> | |
| <li><%= msg %></li> | |
| <% end %> | |
| </ul> | |
| </div> | |
| <% end %> | |
| <div id="windowCreateInvoiceProductDialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="windowTitleLabel" aria-hidden="true"> | |
| <div class="modal-header"> | |
| <a href="#" class="close" data-dismiss="modal">×</a> | |
| <h3>Please enter a new product</h3> | |
| </div> | |
| <div class="modal-body"> | |
| <div class="divDialogElements"> | |
| Code:<input class="xlarge" id="xlInput" name="modal_code" type="text" /> | |
| <br> | |
| Name:<input class="xlarge" id="xlInput" name="modal_name" type="text" /> | |
| <br> | |
| Description:<input class="xlarge" id="xlInput" name="modal_desc" type="text" /> | |
| <br> | |
| Price:<input class="xlarge" id="xlInput" name="modal_price" type="text" /> | |
| </div> | |
| </div> | |
| <div class="modal-footer"> | |
| <a href="#" class="btn" data-dismiss="modal">Cancel</a> | |
| <a href="#" class="btn btn-primary" onclick="okClicked ();">OK</a> | |
| </div> | |
| </div> | |
| <div class="divButtons"> | |
| <a data-toggle="modal" href="#windowCreateInvoiceProductDialog" class="btn btn-primary btn-large">Set Window Title</a> | |
| </div> | |
| <script> | |
| $(document).ready(function() { | |
| $('#windowCreateInvoiceProductDialog').bind('show', function () { | |
| // document.getElementById ("xlInput").value = document.title; | |
| }); | |
| }); | |
| function okClicked () { | |
| $('#windowCreateInvoiceProductDialog').modal('hide'); | |
| // document.title = document.getElementById ("xlInput").value; | |
| // closeDialog (); | |
| }; | |
| </script> | |
| <div class="field"> | |
| <%= f.label :name %><br> | |
| <%= f.text_field :name %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :country_code %><br> | |
| <%= f.text_field :country_code %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :currency_name %><br> | |
| <%= f.text_field :currency_name %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :currency_code %><br> | |
| <%= f.text_field :currency_code %> | |
| </div> | |
| <div class="field"> | |
| <%= f.label :rate %><br> | |
| <%= f.text_field :rate %> | |
| </div> | |
| <div class="actions"> | |
| <%= f.submit %> | |
| </div> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment