-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate_template.ctp
More file actions
29 lines (29 loc) · 997 Bytes
/
create_template.ctp
File metadata and controls
29 lines (29 loc) · 997 Bytes
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
<?php
/**
* registration add create template element
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Allcreator <info@allcreator.net>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
?>
<?php echo $this->NetCommonsForm->radio('create_option',
array(RegistrationsComponent::REGISTRATION_CREATE_OPT_TEMPLATE => __d('registrations', 'Create from Template')),
array('ng-model' => 'createOption',
'hiddenField' => false,
));
?>
<div uib-collapse="createOption != '<?php echo RegistrationsComponent::REGISTRATION_CREATE_OPT_TEMPLATE; ?>'">
<div class="col-xs-11 col-xs-offset-1">
<?php echo $this->NetCommonsForm->input('template_file', array(
'type' => 'file',
'accept' => "text/comma-separated-values",
'div' => false,
'label' => __d('registrations', 'Registration template file'),
'required' => true,
'class' => '',
)); ?>
</div>
</div>