Displaying 8 results from an estimated 8 matches for "field_title".
2007 Nov 18
2
Variable inside of another variable
Hi everyone,
I''m building partial and I need to use a variable inside of another
variable name:
I''ve tried like this:
<div class="form_row">
<label for="<%= field %>"><%= field_title || field.humanize %>:</
label>
<%= form.text_field field,
:size => User::field.upcase_SIZE,
:maxlength => User::field.upcase_MAX_LENGTH %>
</div>
like this:
<div class="form_row">
<label for=...
2006 Mar 07
1
decorators for models?
....
class OrdersDecorator < ActiveRecord::Decorator
The base class (AR::Decorator), each decorator would becom instance
variable @model, which could be used to refer to original model, and
this could happen automagically depending on the class name. There would
be some default functions, like field_title that would return humanized
column descriptions (i.e. order_status -> Order status)
This is how one such decorator could look like
class OrdersDecorator < ActiveRecord::Decorator
@datagrid_fields=%w(id, name, country)
def datagrid_field_title_id
"Order ID"
end
def d...
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...vm/_form.rhtml
+++ b/src/app/views/vm/_form.rhtml
@@ -51,6 +51,9 @@
<div class="vm_form_section" style="display:none;">
<div class="clear_row"></div>
+ <%# display network errors at the top of the section %>
+ <div class="field_title"><label for="vm_nics" /></div>
+
<% if @nics.size > 0 %>
<div id="vm_network_config_header">
<div id="vm_network_config_header_network">Network:</div>
@@ -313,5 +316,25 @@ ${htmlList(pools, id)}...
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
..."clear_row"></div>
+ </div>
+ <div class="clear_row"></div>
+
+ <div class="form_heading clickable closed">Storage</div>
+ <div class="vm_form_section" style="display:none;">
<div class="field_title">Storage: </div>
<div style="height:150px; overflow:auto; border:#CCCCCC solid 1px;">
<ul id="storage_volumes_tree" class="ovirt-tree"></ul>
@@ -35,10 +44,11 @@
<!-- FIXME: fill in total here -->
<div style...
2006 Aug 30
3
Dhtml Calendar Engine undefined method popup_calendar
...ed method `popup_calendar'' for #<#<Class:0x36b3f10>:0x36b3880>) on line #46 of app/views/release_notes/_form.rhtml:
46: <%= popup_calendar ''release_note'', ''date_approved_for_release'',
47: { :class => ''date'',
48: :field_title => ''Date approved for release'',
Anyone have any idea of my mistake?
Thanks and regards
Ross
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this...
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
...e == "edit" %><b style="color: #FF0000">*Warning* Editing provision could overwrite vm</b><% end %>
</div>
- <div style="clear:both;"></div>
- <div class="clear_row"></div>
- <div class="field_title">Storage: </div>
- <div style="height:150px; overflow:auto; border:#CCCCCC solid 1px;">
- <ul id="storage_volumes_tree" class="ovirt-tree"></ul>
+ <div class="clear_row" style="height:15px;"></div&...
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
...9;3']
+ Usage.destroy(ids)
+ return ids
+ end
+end
diff --git a/src/app/views/network/_form.rhtml b/src/app/views/network/_form.rhtml
index 6c67a0e..d04e450 100644
--- a/src/app/views/network/_form.rhtml
+++ b/src/app/views/network/_form.rhtml
@@ -18,11 +18,20 @@
<div class="field_title">Usage:</div>
-<div class="form_field">
+<div id="network_usages_infos" class="form_field">
<select id="network_usages_ids" name="network[usage_ids][]" multiple="true">
<%= options_from_collection_for...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...iv>
+ <div class="clear_row"></div>
+
+ <div class="form_heading">
+ <%= link_to "", "#", :id => "vm_storage_section_link" %>
+ </div>
+ <div id="vm_storage_config">
<div class="field_title">Storage: </div>
<div style="height:150px; overflow:auto; border:#CCCCCC solid 1px;">
<ul id="storage_volumes_tree" class="ovirt-tree"></ul>
@@ -35,10 +50,13 @@
<!-- FIXME: fill in total here -->
<div style...