Skip to content

Instantly share code, notes, and snippets.

/form.php Secret

Created November 20, 2014 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/742e44123b93d1e081a9 to your computer and use it in GitHub Desktop.
Save anonymous/742e44123b93d1e081a9 to your computer and use it in GitHub Desktop.
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<!-- Song Name -->
<div class="form-group">
<?php echo $form->label('songName', t('Song Name'));?>
<?php print $form->text('songName', $songName)?>
</div>
<!-- Album Name -->
<div class="form-group">
<?php echo $form->label('albumName', t('Album Name'));?>
<?php print $form->text('albumName', $albumName)?>
</div>
<!-- Song Notes -->
<div class="form-group">
<?php echo $form->label('songNotes', t('Song Notes')) ?>
<?php print $form->textarea('songNotes', $songNotes, array('rows' => 5))?>
</div>
<!-- Embed Code -->
<div class="form-group">
<?php echo $form->label('embedCode', t('SoundCloud Embed Code')) ?>
<?php print $form->textarea('embedCode', $embedCode, array('rows' => 8))?>
</div>
<!-- Test Stuff -->
<!-- Test Date Picker 5.6 version -->
<!-- the date function gives you a picker for just the date ->date() -->
<!-- the datetime function gives you a picker for the date and time ->datetime() -->
<!-- <div class="form-group">
<?php //echo $form->label('tourDate', t('Tour Date')) ?>
<?php //echo Loader::helper('form/date_time')->date('tourDate', $tourDate); ?>
<?php //echo Loader::helper('form/date_time')->datetime('tourDate', $tourDate); ?>
</div> -->
<!-- Test Date Picker 5.7 version -->
<div class="form-group">
<?php //echo $form->label('tourDate', t('Tour Date')) ?>
<!-- the date function gives you a picker for just the date ->date() -->
<?php echo Core::make('helper/form/date_time')->date('tourDate', $tourDate); ?>
<!-- the datetime function gives you a picker for the date and time ->datetime() -->
<?php //echo Core::make('helper/form/date_time')->datetime('tourDate', $tourDate); ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment