Formulaire de suggestion d'article, plus simple, et avec validation

Réduire
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • #16
    Re : Formulaire de suggestion d'article, plus simple, et avec validation

    Code:
    <!-- rien toucher jusque là -->
    
    
    <!-- ANNONCE -->
    <br>
    Avant de proposer votre id&eacute;e, merci de v&eacute;rfier qu'elle respecte <b><a href=http://theidea.legtux.org/index.php/la-charte>La Charte</a></b>
    <br>
    <br>
    
    <!--  ICI SUPPRIME LES BOUTONS SAUVER CANCEL VERSION 8 LIGNES -->
    
     <div class="edit item-page<?php echo $this->pageclass_sfx; ?>"> 
    	<?php if ($params->get('show_page_heading', 1)) : ?>
    	<div class="page-header">
    		<h1>
    			<?php echo $this->escape($params->get('page_heading')); ?>
    		</h1>
    	</div> 
    	<?php endif; ?> 
    
    <!-- DEBUT BOUTONS SAVE CANCEL -->
    
    
    <form action="<?php echo JRoute::_('index.php?option=com_content&a_id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
    		<div class="btn-toolbar">
    			
    
    		</div>
    
    <!-- FIN BOUTON SAVE CANCEL DEBUT ONGLETS -->
    
    		<fieldset>
    	
    
    			<ul class="nav nav-tabs">
    				<li class="active"><a href="#editor" data-toggle="tab"><?php echo JText::_('COM_CONTENT_ARTICLE_CONTENT') ?></a></li>
    				<?php if ($params->get('show_urls_images_frontend') ) : ?>
    				<li><a href="#images" data-toggle="tab"><?php echo JText::_('COM_CONTENT_IMAGES_AND_URLS') ?></a></li>
    				<?php endif; ?>
    <!-- SUPRESSION DE PUBLISHING	<li><a href="#publishing" data-toggle="tab"><?php echo JText::_('COM_CONTENT_PUBLISHING') ?></a></li>	 -->
    <!-- SUPRESSION DE LANGUE	<li><a href="#language" data-toggle="tab"><?php echo JText::_('JFIELD_LANGUAGE_LABEL') ?></a></li>	 -->
    <!-- SUPRESSION DE METADADONNEE	<li><a href="#metadata" data-toggle="tab"><?php echo JText::_('COM_CONTENT_METADATA') ?></a></li>	 -->
    			</ul>
    
    
    <!-- FORMULAIRE TITRE -->
    			<div class="tab-content">
    				<div class="tab-pane active" id="editor">
    					<div class="control-group">
    						<div class="control-label">
    							<?php echo $this->form->getLabel('title'); ?>
    						</div>
    						<div class="controls">
    							<?php echo $this->form->getInput('title'); ?>
    						</div>
    					</div>
    
    <!-- AJOUT CATEGORIE SOUS LE TITRE -->
    
    				<div class="tab-pane active" id="editor">
    
    					<div class="control-group">
    						<div class="control-label">
    							<?php echo $this->form->getLabel('catid'); ?>
    						</div>
    						<div class="controls">
    							<?php echo $this->form->getInput('catid'); ?>
    						</div>
    					</div>
    				</div>
    
    <!-- debut categorie sous le titre off
    				<div class="tab-pane" id="publishing">
    					<div class="control-group">
    						<div class="control-label">
    							<?php echo $this->form->getLabel('catid'); ?>
    						</div>
    						<div class="controls">
    							<?php echo $this->form->getInput('catid'); ?>
    						</div>
    					</div>
    				</div>
    fin OFF -->
    
    <!-- SUPPRESSION DE ALIAS SOUS TITRE
    					<?php if (is_null($this->item->id)) : ?>
    					<div class="control-group">
    						<div class="control-label">
    							<?php echo $this->form->getLabel('alias'); ?>
    						</div>
    						<div class="controls">
    							<?php echo $this->form->getInput('alias'); ?>
    						</div>
    					</div>
    					<?php endif; ?>
     -->
    
    <!-- APPEL DE WYSIWYW -->
    
    					<?php echo $this->form->getInput('articletext'); ?>
    <!-- FIN APPEL -->
    Donnez vie à vos idées ! http://theidea.legtux.org

    Commentaire


    • #17
      Re : Formulaire de suggestion d'article, plus simple, et avec validation

      Code:
      
      <!-- APPEL DE WYSIWYW -->
      
      					<?php echo $this->form->getInput('articletext'); ?>
      <!-- FIN APPEL -->
      
      
      
      			</div>
      
      
      
      				<?php if ($params->get('show_urls_images_frontend')): ?>
      
      <-- DEBUT PARTIE INUTILE -->
      
      <div class="tab-pane" id="images">
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_intro', 'images'); ?>
      							<?php echo $this->form->getInput('image_intro', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_intro_alt', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('image_intro_alt', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_intro_caption', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('image_intro_caption', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('float_intro', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('float_intro', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_fulltext', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('image_fulltext', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_fulltext_alt', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('image_fulltext_alt', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('image_fulltext_caption', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('image_fulltext_caption', 'images'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('float_fulltext', 'images'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('float_fulltext', 'images'); ?>
      						</div>
      					</div>
      
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urla', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urla', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urlatext', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urlatext', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="controls">
      							<?php echo $this->form->getInput('targeta', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urlb', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urlb', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urlbtext', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urlbtext', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="controls">
      							<?php echo $this->form->getInput('targetb', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urlc', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urlc', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('urlctext', 'urls'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('urlctext', 'urls'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="controls">
      							<?php echo $this->form->getInput('targetc', 'urls'); ?>
      						</div>
      					</div>
      				</div>
      
      <!-- FIN PARTIE INUTILE -->
      				
      				<?php endif; ?>
      
      <!-- OFF ONGLET PUBLICATION
      
      
      				<div class="tab-pane" id="publishing">
      
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('catid'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('catid'); ?>
      						</div>
      					</div>
      
      
      
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('tags'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('tags'); ?>
      						</div>
      					</div>
      
      					<?php if ($params->get('save_history', 0)) : ?>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('version_note'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('version_note'); ?>
      						</div>
      					</div>
      					<?php endif; ?>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('created_by_alias'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('created_by_alias'); ?>
      						</div>
      					</div>
      					<?php if ($this->item->params->get('access-change')) : ?>
      						<div class="control-group">
      							<div class="control-label">
      								<?php echo $this->form->getLabel('state'); ?>
      							</div>
      							<div class="controls">
      								<?php echo $this->form->getInput('state'); ?>
      							</div>
      						</div>
      						<div class="control-group">
      							<div class="control-label">
      								<?php echo $this->form->getLabel('featured'); ?>
      							</div>
      							<div class="controls">
      								<?php echo $this->form->getInput('featured'); ?>
      							</div>
      						</div>
      						<div class="control-group">
      							<div class="control-label">
      								<?php echo $this->form->getLabel('publish_up'); ?>
      							</div>
      							<div class="controls">
      								<?php echo $this->form->getInput('publish_up'); ?>
      							</div>
      						</div>
      						<div class="control-group">
      							<div class="control-label">
      								<?php echo $this->form->getLabel('publish_down'); ?>
      							</div>
      							<div class="controls">
      								<?php echo $this->form->getInput('publish_down'); ?>
      							</div>
      						</div>
      					<?php endif; ?>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('access'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('access'); ?>
      						</div>
      					</div>
      					<?php if (is_null($this->item->id)):?>
      						<div class="control-group">
      							<div class="control-label">
      							</div>
      							<div class="controls">
      								<?php echo JText::_('COM_CONTENT_ORDERING'); ?>
      							</div>
      						</div>
      					<?php endif; ?>
      
      
      				</div>
      
      
      FIN OFF PUBLICATION -->
      
      
      				<div class="tab-pane" id="language">
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('language'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('language'); ?>
      						</div>
      					</div>
      				</div>
      
      <!-- DEBUT DES OPTIONS METADATA-->
      
      				<div class="tab-pane" id="metadata">
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('metadesc'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('metadesc'); ?>
      						</div>
      					</div>
      					<div class="control-group">
      						<div class="control-label">
      							<?php echo $this->form->getLabel('metakey'); ?>
      						</div>
      						<div class="controls">
      							<?php echo $this->form->getInput('metakey'); ?>
      						</div>
      					</div>
      
      					<input type="hidden" name="task" value="" />
      					<input type="hidden" name="return" value="<?php echo $this->return_page; ?>" />
      					<?php if ($this->params->get('enable_category', 0) == 1) :?>
      					<input type="hidden" name="jform[catid]" value="<?php echo $this->params->get('catid', 1); ?>" />
      					<?php endif; ?>
      				</div>
      <!-- FIN DES OPTIONS METADATA
      
      			</div>
      
      
      
      <!-- INSERTION BOUTONS -->
      
      <form action="<?php echo JRoute::_('index.php?option=com_content&a_id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
      		<div class="btn-toolbar">
      
      			<div class="btn-group">
      				<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton('article.save')">
      					<span class="icon-ok"></span> <?php echo JText::_('JSAVE') ?>
      				</button>
      			</div>
      			<div class="btn-group">
      				<button type="button" class="btn" onclick="Joomla.submitbutton('article.cancel')">
      					<span class="icon-cancel"></span> <?php echo JText::_('JCANCEL') ?>
      				</button>
      		</div>
      			
      <!-- SUPPR VERSION
      			<?php if ($params->get('save_history', 0)) : ?>
      
      			<div class="btn-group">
      				<?php echo $this->form->getInput('contenthistory'); ?>
      			</div>
      -->
      
      
      			<?php endif; ?>
      		</div>
      
      <!-- FIN INSERTION -->
      			<?php echo JHtml::_('form.token'); ?>
      		</fieldset>
      	</form>
      </div>
      Donnez vie à vos idées ! http://theidea.legtux.org

      Commentaire

      Annonce

      Réduire
      Aucune annonce pour le moment.

      Partenaire de l'association

      Réduire

      Hébergeur Web PlanetHoster
      Travaille ...
      X