/
_form.html.erb~
88 lines (64 loc) · 2.92 KB
/
_form.html.erb~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div id="container">
<div id="header"><img src="http://localhost:3000/images/ljmuheader.png" width="968" height="125" alt="LJMUHeader" title="LJMU Holiday Request System header"></div>
<div id="leftcolumn"><img src="http://localhost:3000/images/LJMU.png" width="165" height="165" alt="LJMULogo" title="LJMU Logo">
<div class="contactinfo"><h1>LJMU Contact Information</h1>
<p>Telephone Number: 0151 231 2121</p>
<p>Other contact information is available on the <a title ="LJMU Contact Information" href="http://www.ljmu.ac.uk/help.htm">LJMU</a> website</p></div>
</div>
<div id="maincolumn"><br><br>
<h1>Holiday Details</h1>
<% form_for @holiday do |h| %>
<p>
<%= h.label :userid, "User ID" %><br />
<%= h.text_field :userid %>
</p>
<p>
<%= h.label :name, "Staff Name" %><br />
<%= h.text_field :name, :value => current_user.username, :disabled => true %>
</p>
<p>
<%= h.label :amountofdays, "Amount of Days:" %><br />
<%= h.text_field :amountofdays %>
</p>
<p>
<%= h.label :startdate, "Start Date:" %><br />
<%= h.text_field :startdate %>
</p>
<p>
<%= h.label :enddate, "End Date" %><br />
<%= h.text_field :enddate %>
</p>
<p>
<%= h.submit "Save Holiday" %> | <%= link_to "Return to holidays", @holiday %>
</p>
<% end %>
</div>
<div id="rightcolumn">
<div class="snimages">
<a href="http://www.ljmu.ac.uk/staff"><img src="http://localhost:3000/images/LJMU1.png" width="55" height="55" alt="LJMUSocialNetwork" title="LJMU Staff"></a>
<a href="http://www.youtube.com/LJMUTV"><img src="http://localhost:3000/images/youtube.png" width="55" height="55" alt="YoutubeSocialNetwork" title="LJMU YouTube"></a>
<a href="http://www.facebook.com/liverpooljohnmooresuniversity"><img src="http://localhost:3000/images/facebook.png" width="55" height="55" alt="FacebookSocialNetwork" title="LJMU Facebook"></a>
<a href="http://twitter.com/#!/ljmu"><img src="http://localhost:3000/images/twitter.png" width="55" height="55" alt="TwitterSocialNetwork" title="LJMU Twitter"></a>
</div>
<div class="socialnetwork">
<h1>Social Networking</h1>
<p>You can find LJMU on the above social networking websites or return to the LJMU Website.</p></div>
</div>
<div id="footer">
<p>Copyright LJMU. All Rights Reserved.
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" title="HTML 4.01 Transitional Validation Proof" height="31" width="88"></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!" title="CSS 2.1 Validation Proof">
</a>
</p>
</div>
</div>