Skip to content

Instantly share code, notes, and snippets.

@funvill
Created July 15, 2014 21:12
Show Gist options
  • Save funvill/d028dd66926d64390de5 to your computer and use it in GitHub Desktop.
Save funvill/d028dd66926d64390de5 to your computer and use it in GitHub Desktop.
<div class="authors form">
<p>Please update your personal information before submitting a story<br />
<strong>User ID: </strong>: <em><?php echo $profile_id ; ?></em><br />
<strong>Authority</strong>: <em><?php echo $authority ; ?></em> <?php
if( $authority >= 100 ) {
echo $this->Html->link( "Admin", array('controller'=>'admin/stories', 'action'=>'index' ) ) ;
}
if( $authority >= 50 ) {
echo ', '. $this->Html->link( "Slush readers index", array('controller'=>'slusher', 'action'=>'index' ) ) ;
}
?> <br />
</p>
<?php
echo $this->Form->create('Author', array('action' => 'edit') );
echo $this->Form->input('id', array('type'=>'hidden'));
?>
<fieldset>
<legend><?php echo __('Personal Details');?></legend>
<?php
echo $this->Form->input('byline', array( 'between'=> 'Please enter your byline exactly as it should appear with your '. Configure::read('Site.media') .', including caps and punctuation <br />A byline is the name you would like to appear under your '. Configure::read('Site.media') .'. In most cases it will be the same as your REAL NAME','label'=>'By Line (Pen name)' ) );
echo $this->Form->input('website', array( 'between'=> '* Optional, This will appear with your bio at the end of your '. Configure::read('Site.media') ) );
echo $this->Form->input('bio', array( 'between'=> '* Optional but suggested, Your bio will be added to the bottom of your '. Configure::read('Site.media') .' ( Max 100 words )' ) );
if( Configure::read('Site.author.pages') == true ) {
echo $this->Form->input('pages', array('label'=>'Public profile', 'between'=> '* Optional but suggested. Display your byline, Bio, and website on the <a href="/pages/authors/">author pages</a><br />', 'options'=>array( 1=>"Yes", 0=>"No") ) );
}
?>
</fieldset>
<fieldset>
<legend><?php echo __('Legal contact information');?></legend>
<small>Never displayed or shared. We require it for the submission contract.</small>
<?php
echo $this->Form->input('name', array( 'between'=> 'Must be your REAL LEGAL NAME') );
echo $this->Form->input('email', array( 'between'=> 'This is how we will contact you.' ) );
echo $this->Form->input('address');
echo $this->Form->input('city');
echo $this->Form->input('state', array('label'=>'State or provence') );
echo $this->Form->input('country');
echo $this->Form->input('postal_code', array('label'=>'Zip/Postal code') );
echo $this->Form->input('phone_number');
?>
</fieldset>
<?php echo $this->Form->end('Update');?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment