Changeset 1781


Ignore:
Timestamp:
Feb 13, 2011, 5:54:06 PM (10 years ago)
Author:
goya
Message:

correction interface pour articles organismes

Location:
cpc/trunk/project
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/config/routing.yml

    r1718 r1781  
    8787doc_organisme_edit:
    8888  url: /organisme/edit/:article_id
    89   param: {module: article, action: edit, categorie: Organisme, hasObject: true, hasTitre: false, isUnique: true, role: "membre", exclude: 1}
     89  param: {module: article, action: update, categorie: Organisme, hasObject: true, hasTitre: false, isUnique: true, role: "membre", exclude: 1}
    9090rate_id:
    9191  url: /rate/:object_type/:object_id/:rate
  • cpc/trunk/project/apps/frontend/modules/article/templates/_show.php

    r905 r1781  
    33  return;
    44?><p><?php echo $article['corps']; ?></p>
     5<?php if ($sf_user->isAuthenticated() && !$sf_user->hasCredential('membre'))
     6  echo '<h3>'.link_to('Éditer', '@doc_organisme_edit?article_id='.$article['id']).'</h3>';
     7?>
  • cpc/trunk/project/apps/frontend/modules/article/templates/listSuccess.php

    r746 r1781  
    1616  <h2><a name="post_<?php echo $a->id; ?>"></a><?php echo $a->titre;
    1717   if ($sf_user->isAuthenticated() && !$sf_user->hasCredential('membre'))
    18     echo '<span>('.link_to('Editer', '@faq_edit?article_id='.$a->id).')</span>';
     18    echo ' <span>('.link_to('Éditer', '@faq_edit?article_id='.$a->id).')</span>';
    1919?></h2>
    2020<p><?php echo $a->corps; ?></p>
     
    2323<h3><a name="post_<?php echo $sa->id; ?>"></a><?php echo $sa->titre;
    2424   if ($sf_user->isAuthenticated() && !$sf_user->hasCredential('membre'))
    25     echo '<span>('.link_to('Editer', '@faq_edit?article_id='.$sa->id).')</span>';
     25    echo ' <span>('.link_to('Éditer', '@faq_edit?article_id='.$sa->id).')</span>';
    2626?></h3>
    2727<p><?php echo $sa->corps; ?></p>
  • cpc/trunk/project/lib/form/doctrine/ArticleForm.class.php

    r1314 r1781  
    2424    $this->widgetSchema['corps'] = new sfWidgetFormInputHidden();
    2525    $this->widgetSchema['user_corps']->setOption('label', 'Corps');
     26    $this->widgetSchema['user_corps']->setAttribute('style', 'width:65em');
    2627    if (!isset($_GET['moderateur']) || !$_GET['moderateur']) {
    2728      unset($this['status']);
Note: See TracChangeset for help on using the changeset viewer.