search for: form_field

Displaying 9 results from an estimated 9 matches for "form_field".

2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
...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_select @usage_types, "id", "label",...
2009 Feb 06
2
Using partials with form_for
hi all i was wondering whether it is possible to use partials along with form_for and form_field. following code is not working. is there some error or this case is impossible..?? *#new.html.erb* <h1>Enter Details for new Partner:</h1> <% form_for(@partner) do |f| %> <%= render :partial => ''form'', :locals => {:partner => f} %> <p&gt...
2006 Apr 25
2
Noob Question: REgarding Forms ( Take 2 )
I''m hoping there''s an easy way to do this. I''m trying to read options from a database, and insert them into form tags. So for example, In the Database Table: options size: 300 type: text_field maxsize: 300 and I want to create a text_field form tag, with all the appropriate options, is there an easy way to do this, other than having the code output the HTML
2011 Mar 10
10
JS data to rails view helper
I have a view helper like ryan bates complex forms task helper, rails 2.2.2. Anyway is there a way to send the value selected in a select menu to the helper? I am trying to do stuff without going back to the server. <%= select_tag :discout_code, options_for_select(@discount_codes)%><%= add_exclusion_date_link(''Add Existing'', JS ) %> -- You received this
2007 Jul 30
0
Setting AR attribute from date_select values?
I have a date select: <%= form_fields.date_select :birthday_on, :order => [:month, :day, :year], :start_year => 1900 %> In my controller I want to set the individual attribute. How do I do this? user.birthday_on = params[:user][:birthday_on] How do I convert this to a date so it set properly? Thanks for your time! -- Pos...
2008 Jan 18
2
autocomplete for
I have this code in my view: <%= text_field_with_auto_complete :client, :name %> when I submit new, y get: "client"=>{"name"=>"MSO"} I want to get: "repair_ticket"=>{"client_id"=>"??"} My models are class Client < ActiveRecord::Base has_many :repair_tickets end class RepairTicket <
2008 Jan 23
1
Adv. Rails Recipes - Problem w/ DRY forms
...for Keeping Forms DRY and Flexible - #22. I think the last little hurdle that I have is applying my CSS style to the field labels. This is in the partial for displaying the field <p> <span class="field_label"> <%= label %> </span> <span class="form_field"> <%= element %> </span> </p> I want to stylize the class field_label. When I view the html, it looks like this: <span class="field_label"> <label for="order_customer_id">Customer</label> </span> My thought is that...
2010 Aug 25
2
[PATCH] Virtio support
...; <div style="background:#F3F3F3; padding:6px; border-left:#CCCCCC solid 1px; border-right:#CCCCCC solid 1px; border-bottom:#CCCCCC solid 1px; ">Total:</div> <div class="clear_row" style="height:15px;"></div> + + <div class="form_field"> + <%= check_box "vm", "virtio" %> + <%= label "vm", "virtio", "Use virtio" %> + </div> </div> <div class="clear_row"></div> @@ -87,6 +92,12 @@ &nbsp;...
2005 Aug 09
7
trunk restructuring, new util.js
Hi all, The latetest trunk revision 1983 features are more streamlined directory layout and a new util.js file, that acts as a collector for stuff that doesn''t fit in elsewhere. To get a grip at the new Builder functionality look at the test in test/unit/builder_test.html (works only with Firefox). Note the "klass" instead of "class", this circumvents a