Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL Resource Scheduler
Commits
39cb3695
Commit
39cb3695
authored
May 01, 2017
by
Tyler R Lemburg
Browse files
Merge branch 'master' of git.unl.edu:iim/unl-resource-scheduler
parents
f3b286ef
72ae150b
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/reserve.erb
View file @
39cb3695
...
...
@@ -178,11 +178,13 @@ EIGHT_PM_MINUTES = 1200 # end time of calendar
</select>
<%
else
resource
.
minutes_per_reservation
.
nil?
%>
<select
id=
"reservation-length"
name=
"length"
>
<%
(
1
..
4
).
each
do
|
i
|
%>
<option
value=
"
<%=
i
*
15
%>
"
>
<%=
i
*
15
%>
minutes
</option>
<%
(
1
..
3
).
each
do
|
i
|
%>
<%
min
=
i
*
15
%>
<option
value=
"
<%=
min
%>
"
<%=
(
!
reservation
.
nil?
&&
reservation
.
length
==
min
)?
"selected"
:
""
%>
>
<%=
min
%>
minutes
</option>
<%
end
%>
<option
value=
"90"
>
1.5 hours
</option>
<option
value=
"120"
>
2 hours
</option>
<option
value=
"60"
<%=
(
reservation
.
nil?
||
reservation
.
length
==
60
)?
"selected"
:
""
%>
>
1 hour
</option>
<option
value=
"90"
<%=
(
!
reservation
.
nil?
&&
reservation
.
length
==
90
)?
"selected"
:
""
%>
>
1.5 hours
</option>
<option
value=
"120"
<%=
(
!
reservation
.
nil?
&&
reservation
.
length
==
120
)?
"selected"
:
""
%>
>
2 hours
</option>
</select>
<%
end
%>
<label
for=
"title"
>
Name of Reservation: (e.g. "Group Meeting")
</label>
...
...
Write
Preview
Supports
Markdown
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