Skip to content

Commit

Permalink
Add checkbox for EXIF and set to disabled until we have views for it F…
Browse files Browse the repository at this point in the history
  • Loading branch information
woxxy committed May 8, 2012
1 parent fe24e1b commit acd5902
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions application/models/radix_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ function structure($radix = NULL)
)
)
),
'display_exif' => array(
'database' => TRUE,
'boards_preferences' => TRUE,
'help' => _('Show the EXIF data (EXIF data is saved in the database regardless)'),
'type' => 'checkbox',
'disabled' => 'disabled',
),
'enable_poster_hash' => array(
'database' => TRUE,
'boards_preferences' => TRUE,
Expand Down
7 changes: 6 additions & 1 deletion application/views/admin/form_creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,12 @@
$extra = '';
if(isset($helpers['sub']))
{
$extra = 'data-function="hasSubForm"';
$extra .= 'data-function="hasSubForm"';
}

if(isset($item['disabled']))
{
$extra .= ' disabled="disabled"';
}
?>
<label class="checkbox">
Expand Down

0 comments on commit acd5902

Please sign in to comment.