Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1426726
_form.html.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 17, 11:56 AM
Size
1 KB
Mime Type
text/plain
Expires
Mon, Jan 19, 11:56 AM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
325768
Attached To
rARCHIVING archiving
_form.html.erb
View Options
<%=
bootstrap_form_for
(
@schedule
,
url
:
host_schedules_path
(
@host
),
layout
:
:horizontal
,
label_col
:
'col-xs-3'
,
control_col
:
'col-xs-8'
)
do
|
f
|
%>
<%=
f
.
text_field
:name
,
required
:
true
%>
<hr />
<%
if
[
'schedule_runs.day'
,
'schedule_runs.month'
,
'scheduled_runs.time'
]
-
@schedule
.
errors
.
keys
%>
<div id="error_explanation" class="has-error">
<ul>
<%
@schedule
.
errors
.
full_messages
.
each
do
|
message
|
%>
<li><span class="help-block">
<%=
message
%>
</span></li>
<%
end
%>
</ul>
</div>
<%
end
%>
<%=
f
.
fields_for
:schedule_runs_attributes
,
index
:
nil
do
|
r
|
%>
<div class="schedule_run_form">
<%=
r
.
select
:level
,
options_for_select
(
ScheduleRun
.
levels
.
keys
)
%>
<%=
r
.
text_field
:month
,
placeholder
:
'[month | month-range]'
%>
<p class="col-xs-10 col-xs-offset-1 help-block text-right">eg: jan-mar, feb, monthly</p>
<%=
r
.
text_field
:day
,
placeholder
:
'[week | week-range] day | day-range'
,
required
:
true
%>
<p class="col-xs-10 col-xs-offset-1 help-block text-right">
eg: first sun, second-fifth mon, mon-sat
</p>
<%=
r
.
time_field
:time
,
placeholder
:
'HH:MM'
,
required
:
true
%>
</div>
<hr />
<%
end
%>
<div class="col-xs-1 col-xs-offset-10">
<%=
link_to
'#'
,
class
:
'schedule_run_form_remove'
,
style
:
'display:none;'
do
%>
<span class="glyphicon glyphicon-remove text-danger"></span>
<%
end
%>
</div>
<div class="col-xs-1 col-xs-offset-10">
<%=
link_to
'#'
,
class
:
'schedule_run_form_plus'
do
%>
<span class="glyphicon glyphicon-plus text-success"></span>
<%
end
%>
</div>
<%=
(
hidden_field_tag
:job_id
,
@job_id
)
if
@job_id
%>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-8">
<%=
f
.
submit
class
:
'btn btn-success'
%>
</div>
</div>
<%
end
%>
Event Timeline
Log In to Comment