Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F401853
_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
Thu, Feb 20, 1:38 PM
Size
3 KB
Mime Type
text/plain
Expires
Sat, Feb 22, 1:38 PM (19 h, 2 m)
Engine
blob
Format
Raw Data
Handle
191832
Attached To
rARCHIVING archiving
_form.html.erb
View Options
<%=
bootstrap_form_for
(
@setting
,
url
:
path
,
layout
:
:horizontal
,
label_col
:
'col-xs-5'
,
control_col
:
'col-xs-5'
)
do
|
f
|
%>
<div class="row">
<div class="col-md-4 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Client</h4>
</div>
<br />
<%=
f
.
fields_for
:client
do
|
c
|
%>
<%=
c
.
text_field
:catalog
,
:value
=>
@setting
.
current_client_settings
[
:catalog
]
%>
<%=
c
.
number_field
:file_retention
,
:value
=>
@setting
.
current_client_settings
[
:file_retention
]
%>
<%=
c
.
select
:file_retention_period_type
,
options_for_select
(
ConfigurationSetting
::
RETENTION_PERIODS
,
@setting
.
current_client_settings
[
:file_retention_period_type
]
)
%>
<%=
c
.
number_field
:job_retention
,
:value
=>
@setting
.
current_client_settings
[
:job_retention
]
%>
<%=
c
.
select
:job_retention_period_type
,
options_for_select
(
ConfigurationSetting
::
RETENTION_PERIODS
,
@setting
.
current_client_settings
[
:job_retention_period_type
]
)
%>
<%=
c
.
select
:autoprune
,
ConfigurationSetting
::
AUTOPRUNE_OPTIONS
,
:value
=>
@setting
.
current_client_settings
[
:autoprune
]
%>
<%=
c
.
number_field
:quota
,
value
:
@setting
.
current_client_settings
[
:quota
].
to_i
/
ConfigurationSetting
::
MEGA_BYTES
%>
<%=
c
.
select
(
:quota_unit
,
[
'MB'
,
'GB'
,
'TB'
]
,
value
:
'MB'
)
%>
<%
end
%>
</div>
</div>
<div class="col-md-4 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Job</h4>
</div>
<br />
<%=
f
.
fields_for
:job
do
|
jb
|
%>
<%=
jb
.
select
:storage
,
options_for_select
(
Storage
.
available_options
,
@setting
.
current_job_settings
[
:storage
]
)
%>
<%=
jb
.
select
:pool
,
options_for_select
(
Pool
.
available_options
,
@setting
.
current_job_settings
[
:pool
]
)
%>
<%=
jb
.
text_field
:messages
,
:value
=>
@setting
.
current_job_settings
[
:messages
]
%>
<%=
jb
.
text_field
:'Write Bootstrap'
,
:value
=>
@setting
.
current_job_settings
[
:'Write Bootstrap'
]
%>
<%=
jb
.
number_field
:priority
,
:value
=>
@setting
.
current_job_settings
[
:priority
]
%>
<%
end
%>
</div>
</div>
<div class="col-md-4 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4>Pool</h4>
</div>
<br />
<%=
f
.
fields_for
:pool
do
|
p
|
%>
<%=
p
.
select
:full
,
options_for_select
(
Pool
.
available_options
,
@setting
.
current_pool_settings
[
:full
]
)
%>
<%=
p
.
select
:differential
,
options_for_select
(
Pool
.
available_options
,
@setting
.
current_pool_settings
[
:differential
]
)
%>
<%=
p
.
select
:incremental
,
options_for_select
(
Pool
.
available_options
,
@setting
.
current_pool_settings
[
:incremental
]
)
%>
<%
end
%>
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-1">
<%=
link_to
'Cancel'
,
admin_settings_path
,
role
:
:button
,
class
:
'btn btn-danger'
%>
</div>
<div class="col-xs-2 col-xs-offset-1 text-right">
<%=
f
.
submit
class
:
'btn btn-success'
%>
</div>
</div>
</br>
<%
end
%>
Event Timeline
Log In to Comment