Sha256: feeab60cf23f0b3a78e4727835ed7838119d15ccd964da55944d247815904766

Contents?: true

Size: 1.07 KB

Versions: 22

Compression:

Stored size: 1.07 KB

Contents

<hr/>
<h2>Accounts</h2>
<table>
	<thead>
		<tr><th>ID</th><th>Name</th><th>Shard</th><th>&nbsp;</th></tr>
	</thead>
	<tbody>
<% @accounts.each do |account| %>
	<tr>
		<td><%= account.id %></td>
		<td><%= account.name %></td>
		<td><%= account.shard %></td>
		<td><%= link_to 'Choose', choose_account_path(account) %></td>
	</tr>
<% end %>
	</tbody>
</table>
<hr/>
<h2>New Account</h2>
<p>
<% form_for :acct, :url => accounts_path do |f| %>
	Name : <%= f.text_field :name %><br/>
	Shard: <%= select 'acct', 'shard', [[0,0],[1,1]] %><br/>
	<%= submit_tag 'Save' %>
<% end %>
</p>
<hr/>
<% if @account %>
<h2>Current Account: <%= @account.name %></h2>
	<table>
		<thead>
			<tr><th>ID</th><th>Account</th><th>Value</th></tr>
		</thead>
		<tbody>
		<% @account.figments.each do |fig| %>
		<tr>
			<td><%= fig.id %></td>
			<td><%= fig.account.name %></td>
			<td><%= fig.value %></td>
		</tr>
		<% end %>
		</tbody>
	</table>
	Add Fig: <% form_for :figment, :url => figments_path do |f| %><%= f.text_field :value %><%= submit_tag 'Save' %><% end %>
<% else %>
	<em>No account selected.</em>
<% end %>

Version data entries

22 entries across 15 versions & 1 rubygems

Version Path
data_fabric-1.3.3 example23/app/views/accounts/index.html.erb
data_fabric-1.3.2 example23/app/views/accounts/index.html.erb
data_fabric-1.3.1 example23/app/views/accounts/index.html.erb
data_fabric-1.3.0 example23/app/views/accounts/index.html.erb
data_fabric-1.2.7 example23/app/views/accounts/index.html.erb
data_fabric-1.2.7 example/app/views/accounts/index.html.erb
data_fabric-1.2.0 example22/app/views/accounts/index.html.erb
data_fabric-1.2.1 example/app/views/accounts/index.html.erb
data_fabric-1.2.2 example/app/views/accounts/index.html.erb
data_fabric-1.2.1 example22/app/views/accounts/index.html.erb
data_fabric-1.2.2 example22/app/views/accounts/index.html.erb
data_fabric-1.0.0 example/app/views/accounts/index.html.erb
data_fabric-1.0.1 example/app/views/accounts/index.html.erb
data_fabric-1.0.2 example/app/views/accounts/index.html.erb
data_fabric-1.1.0 example/app/views/accounts/index.html.erb
data_fabric-1.2.0 example/app/views/accounts/index.html.erb
data_fabric-1.2.5 example22/app/views/accounts/index.html.erb
data_fabric-1.2.5 example/app/views/accounts/index.html.erb
data_fabric-1.2.4 example22/app/views/accounts/index.html.erb
data_fabric-1.2.4 example/app/views/accounts/index.html.erb