Sha256: 7d7e5a1ac12fa79e6e81ffe3775c78d6a938485475240ab69f8bcc8f877913d7
Contents?: true
Size: 1.75 KB
Versions: 178
Compression:
Stored size: 1.75 KB
Contents
<div id='my_account'> <h1>My Account</h1> <p><div id='user_<%= @user.id %>_first_name' ></div></p> <p><div id='user_<%= @user.id %>_last_name' ></div></p> <p><div id='user_<%= @user.id %>_email' ></div></p> <p><div id='user_<%= @user.id %>_phone' ></div></p> <div id='message'></div> <p> <% if @site.use_store %> <input type='button' value='Order History' class='btn' onclick="window.location='/my-account/orders';" /> <% end %> </p> </div> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type='text/javascript'> $(document).ready(function() { new ModelBinder({ name: 'User', id: <%= @user.id %>, update_url: '/my-account', authenticity_token: '<%= form_authenticity_token %>', attributes: [ { name: 'first_name' , nice_name: 'First name' , type: 'text', value: <%= raw Caboose.json(@user.first_name) %>, width: 400 }, { name: 'last_name' , nice_name: 'Last name' , type: 'text', value: <%= raw Caboose.json(@user.last_name) %>, width: 400 }, { name: 'email' , nice_name: 'Email' , type: 'text', value: <%= raw Caboose.json(@user.email) %>, width: 400 }, { name: 'phone' , nice_name: 'Phone Number' , type: 'text', value: <%= raw Caboose.json(@user.phone) %>, width: 400 } ], on_load: function() { $('#user_<%= @user.id %>_first_name').css('width', '400px'); $('#user_<%= @user.id %>_last_name' ).css('width', '400px'); $('#user_<%= @user.id %>_email' ).css('width', '400px'); $('#user_<%= @user.id %>_phone' ).css('width', '400px'); } }); }); </script> <% end %> <%= content_for :caboose_css do %> <%= stylesheet_link_tag "caboose/my_account", :media => "all" %> <% end %>
Version data entries
178 entries across 178 versions & 1 rubygems