Skip to content

Instantly share code, notes, and snippets.

@spockz
Created October 30, 2012 13:23
Show Gist options
  • Save spockz/3980157 to your computer and use it in GitHub Desktop.
Save spockz/3980157 to your computer and use it in GitHub Desktop.
Parametersapplication/x-www-form-urlencoded
authenticity_token NiPmnmEqG+IghUvvKnwMhtwOL+ZnbrgAiXJTy/nLdx0=
commit Create Rekenservice
rekenservice[address]
rekenservice[btwnummer]
rekenservice[city]
rekenservice[company_name... bink
rekenservice[country]
rekenservice[description]
rekenservice[email]
rekenservice[kvknummer]
rekenservice[telephone]
rekenservice[webaddress]
rekenservice[zipcode]
utf8 ✓
Source
utf8=%E2%9C%93&authenticity_token=NiPmnmEqG%2BIghUvvKnwMhtwOL%2BZnbrgAiXJTy%2FnLdx0%3D&rekenservice%5Bcompany_name%5D=bink&rekenservice%5Bemail%5D=&rekenservice%5Btelephone%5D=&rekenservice%5Bwebaddress%5D=&rekenservice%5Bkvknummer%5D=&rekenservice%5Bbtwnummer%5D=&rekenservice%5Bdescription%5D=&rekenservice%5Baddress%5D=&rekenservice%5Bzipcode%5D=&rekenservice%5Bcity%5D=&rekenservice%5Bcountry%5D=&commit=Create+Rekenservice
<form accept-charset="UTF-8" action="/rekenservices" class="form-horizontal" id="new_rekenservice" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="NiPmnmEqG+IghUvvKnwMhtwOL+ZnbrgAiXJTy/nLdx0=" /></div>
<legend>Rekenservice</legend>
<div class="control-group">
<label class="control-label" for="rekenservice_company_name">Company name</label>
<div class="controls">
<input class="span3" id="rekenservice_company_name" name="rekenservice[company_name]" placeholder="BINK software B.V." size="30" type="text" />
</div>
</label>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_email">Email</label>
<div class="controls">
<input class="span3" id="rekenservice_email" name="rekenservice[email]" placeholder="info@binksoftware.nl" size="30" type="email" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_telephone">Telephone</label>
<div class="controls">
<input class="span3" id="rekenservice_telephone" name="rekenservice[telephone]" placeholder="+31 7 400 200" size="30" type="text" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_webaddress">Webaddress</label>
<div class="controls">
<input class="span3" id="rekenservice_webaddress" name="rekenservice[webaddress]" placeholder="http://www.binksoftware.nl" size="30" type="url" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_kvknummer">Kvknummer</label>
<div class="controls">
<input class="span3" id="rekenservice_kvknummer" name="rekenservice[kvknummer]" placeholder="24378259" size="30" type="text" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_btwnummer">Btwnummer</label>
<div class="controls">
<input class="span3" id="rekenservice_btwnummer" name="rekenservice[btwnummer]" placeholder="NL 8150.07.917.B.01" size="30" type="text" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_description">Description</label>
<div class="controls">
<textarea class="span3" cols="1" id="rekenservice_description" name="rekenservice[description]" placeholder="Beschrijving van het bedrijf" rows="4">
</textarea>
</div>
</div>
<legend>Adres</legend>
<div class="control-group">
<label class="control-label" for="rekenservice_address">Address</label>
<div class="controls">
<input class="span3" id="rekenservice_address" name="rekenservice[address]" placeholder="Grotekerksbuurt 31b" size="30" type="text" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_zipcode">Zipcode</label>
<div class="controls control-rows">
<input class="span1" id="rekenservice_zipcode" name="rekenservice[zipcode]" placeholder="3311CA" size="30" type="text" />
<input class="span2" id="rekenservice_city" name="rekenservice[city]" placeholder="Dordrecht" size="30" type="text" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="rekenservice_country">Country</label>
<div class="controls">
<input class="span3" id="rekenservice_country" name="rekenservice[country]" placeholder="Nederland" size="30" type="text" />
</div>
</div>
<div class="form-actions">
<input class="btn btn-primary" name="commit" type="submit" value="Create Rekenservice" />
</div>
</form>
<%= form_for(@rekenservice, :html => {:class => "form-horizontal"}) do |f| %>
<% if @rekenservice.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@rekenservice.errors.length, "error") %> prohibited this rekenservice from being saved:</h2>
<ul>
<% @rekenservice.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<legend>Rekenservice</legend>
<div class="control-group">
<%= f.label :company_name, :class => "control-label" %>
<div class="controls">
<%= f.text_field :company_name, :placeholder => "BINK software B.V.", :class => "span3" %>
</div>
</label>
</div>
<div class="control-group">
<%= f.label :email, :class => "control-label" %>
<div class="controls">
<%= f.email_field :email, :placeholder => "info@binksoftware.nl", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :telephone, :class => "control-label" %>
<div class="controls">
<%= f.text_field :telephone, :placeholder => "+31 7 400 200", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :webaddress, :class => "control-label" %>
<div class="controls">
<%= f.url_field :webaddress, :placeholder => "http://www.binksoftware.nl", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :kvknummer, :class => "control-label" %>
<div class="controls">
<%= f.text_field :kvknummer, :placeholder => "24378259", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :btwnummer, :class => "control-label" %>
<div class="controls">
<%= f.text_field :btwnummer, :placeholder => "NL 8150.07.917.B.01", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :description, :class => "control-label" %>
<div class="controls">
<%= f.text_area :description, :size => "1x4", :placeholder => "Beschrijving van het bedrijf", :class => "span3" %>
</div>
</div>
<legend>Adres</legend>
<div class="control-group">
<%= f.label :address, :class => "control-label" %>
<div class="controls">
<%= f.text_field :address, :placeholder => "Grotekerksbuurt 31b", :class => "span3" %>
</div>
</div>
<div class="control-group">
<%= f.label :zipcode, :class => "control-label" %>
<div class="controls control-rows">
<%= f.text_field :zipcode, :placeholder => "3311CA", :class => "span1" %>
<%= f.text_field :city, :placeholder => "Dordrecht", :class => "span2" %>
</div>
</div>
<div class="control-group">
<%= f.label :country, :class => "control-label" %>
<div class="controls">
<%= f.text_field :country, :placeholder => "Nederland", :class => "span3" %>
</div>
</div>
<div class="form-actions">
<%= f.submit :class => "btn btn-primary" %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment