-
Notifications
You must be signed in to change notification settings - Fork 0
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
a3e7721
commit 61ab6de
Showing
6 changed files
with
275 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,70 @@ | ||
<% content_for :title, "Editing movie" %> | ||
|
||
<h1>Editing movie</h1> | ||
|
||
<%= render "form", movie: @movie %> | ||
|
||
<br> | ||
|
||
<div> | ||
|
||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Simple Styled Page</title> | ||
<style> | ||
/* General Styles */ | ||
body { | ||
margin: 0; | ||
font-family: Arial, sans-serif; | ||
color: #333; | ||
} | ||
|
||
/* Header Style */ | ||
header { | ||
background-color: #004D98; /* Deep blue background */ | ||
color: white; | ||
padding: 10px 20px; | ||
text-align: center; | ||
} | ||
|
||
/* Main Content Style */ | ||
.content { | ||
padding: 20px; | ||
background-color: #F5F5F5; /* Light grey background */ | ||
} | ||
|
||
/* Footer Style */ | ||
footer { | ||
background-color: #D97B9A; /* Light red background */ | ||
color: white; | ||
text-align: center; | ||
padding: 10px; | ||
width: 100%; | ||
bottom: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<% content_for :title, "Editing movie" %> | ||
|
||
<h1>Editing movie</h1> | ||
|
||
</header> | ||
|
||
<div class="content"> | ||
<%= render "form", movie: @movie %> | ||
|
||
<br> | ||
|
||
</div> | ||
|
||
<footer> | ||
<div> | ||
<%= link_to "Show this movie", @movie %> | | ||
<%= link_to "Back to movies", movies_path %> | ||
</div> | ||
|
||
|
||
</footer> | ||
</body> | ||
</html> |
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,11 +1,65 @@ | ||
<% content_for :title, "New movie" %> | ||
|
||
<h1>New movie</h1> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Simple Styled Page</title> | ||
<style> | ||
/* General Styles */ | ||
body { | ||
margin: 0; | ||
font-family: Arial, sans-serif; | ||
color: #333; | ||
} | ||
|
||
/* Header Style */ | ||
header { | ||
background-color: #004D98; /* Deep blue background */ | ||
color: white; | ||
padding: 10px 20px; | ||
text-align: center; | ||
} | ||
|
||
/* Main Content Style */ | ||
.content { | ||
padding: 20px; | ||
background-color: #F5F5F5; /* Light grey background */ | ||
} | ||
|
||
/* Footer Style */ | ||
footer { | ||
background-color: #D97B9A; /* Light red background */ | ||
color: white; | ||
text-align: center; | ||
padding: 10px; | ||
width: 100%; | ||
bottom: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>New movie</h1> | ||
</header> | ||
|
||
<div class="content"> | ||
<h2>Main Content</h2> | ||
|
||
|
||
<%= render "form", movie: @movie %> | ||
|
||
<br> | ||
|
||
<div> | ||
<%= link_to "Back to movies", movies_path %> | ||
</div> | ||
|
||
<footer> | ||
|
||
<div> | ||
<%= link_to "Back to movies", movies_path(attribute: params[:attribute], order: params[:order]) %> | ||
</div> | ||
|
||
|
||
</footer> | ||
</body> | ||
|
Oops, something went wrong.