Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đường Sỹ Hoàng
sample_app
Commits
20870c18
Commit
20870c18
authored
Nov 21, 2019
by
Đường Sỹ Hoàng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unuse files
parent
f2e2d3dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
30 deletions
+5
-30
app/views/users/edit.html.erb
+3
-18
app/views/users/new.html.erb
+2
-12
No files found.
app/views/users/edit.html.erb
View file @
20870c18
<%
provide
(
:title
,
"Edit user"
)
%>
<%
provide
(
:title
,
"Edit user"
)
%>
<%
provide
(
:button_text
,
"Save changes"
)
%>
<h1>
Update your profile
</h1>
<h1>
Update your profile
</h1>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<%=
form_for
(
@user
)
do
|
f
|
%>
<%=
render
"form"
%>
<%=
render
"shared/error_messages"
,
object:
f
.
object
%>
<%=
f
.
label
:name
%>
<%=
f
.
text_field
:name
,
class:
"form-control"
%>
<%=
f
.
label
:email
%>
<%=
f
.
email_field
:email
,
class:
"form-control"
%>
<%=
f
.
label
:password
%>
<%=
f
.
password_field
:password
,
class:
"form-control"
%>
<%=
f
.
label
:password_confirmation
,
"Confirmation"
%>
<%=
f
.
password_field
:password_confirmation
,
class:
"form-control"
%>
<%=
f
.
submit
"Save changes"
,
class:
"btn btn-primary"
%>
<%
end
%>
<div
class=
"gravatar_edit"
>
<div
class=
"gravatar_edit"
>
<%=
gravatar_for
@user
%>
<%=
gravatar_for
@user
%>
<a
href=
"http://gravatar.com/emails"
>
change
</a>
<a
href=
"http://gravatar.com/emails"
>
change
</a>
...
...
app/views/users/new.html.erb
View file @
20870c18
<%
provide
(
:title
,
"Sign up"
)
%>
<%
provide
(
:title
,
"Sign up"
)
%>
<%
provide
(
:button_text
,
"Create my account"
)
%>
<h1>
Sign up
</h1>
<h1>
Sign up
</h1>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<%=
form_for
(
@user
)
do
|
f
|
%>
<%=
render
"form"
%>
<%=
render
"shared/error_messages"
,
object:
f
.
object
%>
<%=
f
.
label
:name
%>
<%=
f
.
text_field
:name
,
class:
"form-control"
%>
<%=
f
.
label
:email
%>
<%=
f
.
email_field
:email
,
class:
"form-control"
%>
<%=
f
.
label
:password
%>
<%=
f
.
password_field
:password
,
class:
"form-control"
%>
<%=
f
.
label
:password_confirmation
,
"Confirmation"
%>
<%=
f
.
password_field
:password_confirmation
,
class:
"form-control"
%>
<%=
f
.
submit
"Create my account"
,
class:
"btn btn-primary"
%>
<%
end
%>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment