Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9ce25a
commit 442d66f
Showing
16 changed files
with
375 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
<%= title "修改密码" %> | ||
|
||
<%= render "partial/left_navigation" %> | ||
|
||
<% if current_user.username != "1234" %> | ||
<span class="notice"><%= flash[:notice] %></span> | ||
<%= simple_form_for(resource, :url => update_password_path, :html => { :method => :put }) do |f| %> | ||
<%= f.input :current_password, as: :password, input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<%= f.input :password, as: :password, label: "新密码", input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<%= f.input :password_confirmation, as: :password, input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<div> | ||
<%= f.submit "确认", class: "btn-primary" %> | ||
</div> | ||
<% end %> | ||
<div class="row-fluid"> | ||
<div class="span9 offset3"> | ||
|
||
<% else %> | ||
您目前登录的是测试账户,所以无法修改密码 | ||
<% end %> | ||
<% if current_user.username != "1234" %> | ||
<span class="notice"><%= flash[:notice] %></span> | ||
<%= simple_form_for(resource, :url => update_password_path, :html => { :method => :put }) do |f| %> | ||
<%= f.input :current_password, as: :password, input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<%= f.input :password, as: :password, label: "新密码", input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<%= f.input :password_confirmation, as: :password, input_html: {autocomplete: "off", class: "wenben4"} %> | ||
<div> | ||
<%= f.submit "确认", class: "btn-primary" %> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
您目前登录的是测试账户,所以无法修改密码 | ||
<% end %> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<script> | ||
$(function(){ | ||
$("#shezhi").addClass("current") | ||
$("#bianji_mima").addClass("current") | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
<%= title "编辑用户资料" %> | ||
|
||
<%= render "partial/left_navigation" %> | ||
|
||
<% if current_user.username != "1234" %> | ||
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "validate_form"}) do |f| %> | ||
<%= f.input :email, readonly: true, input_html: {class: "wenben4"} %> | ||
<%= f.input :username, input_html: {class: "validate[required, maxSize[20], ajax[ajaxUserUsername]] wenben4"} %> | ||
<%= f.input :current_password, input_html: {class: "wenben4", autocomplete: "off"}, hint: "请输入当前密码来更新账户" %> | ||
<div> | ||
<%= f.button :submit, "更新", class: "btn-primary" %> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
您目前登录的是测试账户,所以无法编辑用户信息 | ||
<% end %> | ||
|
||
<script> | ||
$(function(){ | ||
$("#shezhi").addClass("current") | ||
$("#bianjiyonghu").addClass("current") | ||
}) | ||
</script> | ||
<div class="row-fluid"> | ||
<div class="span9 offset3"> | ||
<% if current_user.username != "1234" %> | ||
<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "validate_form"}) do |f| %> | ||
<%= f.input :email, readonly: true, input_html: {class: "wenben4"} %> | ||
<%= f.input :username, input_html: {class: "validate[required, maxSize[20], ajax[ajaxUserUsername]] wenben4"} %> | ||
<%= f.input :current_password, input_html: {class: "wenben4", autocomplete: "off"}, hint: "请输入当前密码来更新账户" %> | ||
<div> | ||
<%= f.button :submit, "更新", class: "btn-primary" %> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
您目前登录的是测试账户,所以无法编辑用户信息 | ||
<% end %> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
<%= render "/partial/left_navigation" %> | ||
|
||
<div id="right_body"> | ||
<div id="new_zhangben_tip"> | ||
<div class="row-fluid"> | ||
<div class="span9 offset3"> | ||
<%= simple_form_for @zhangben, html: {class: "validate_form"} do |f| %> | ||
<%= f.input :name, input_html: {class: "validate[required, maxSize[20]] wenben4"} %> | ||
<%= f.input :desc, input_html: {class: "validate[maxSize[1000]] text1"} %> | ||
<%= f.input :name, input_html: {class: "validate[required, maxSize[20]] wenben4"}, required: true %> | ||
<%= f.input :desc, input_html: {class: "validate[maxSize[1000]]"} %> | ||
<div> | ||
<%= f.button :submit, "确认", class: "button" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
$(function(){ | ||
$("#shezhi").addClass("current") | ||
$("#zhangbenguanli").addClass("current") | ||
}) | ||
</script> | ||
|
||
|
Oops, something went wrong.