Skip to content

Commit

Permalink
Various bugfixes and minor design updates
Browse files Browse the repository at this point in the history
  • Loading branch information
romaindeveaud committed Mar 16, 2010
1 parent c509373 commit 6a795ce
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 10 deletions.
1 change: 1 addition & 0 deletions TODO
Expand Up @@ -26,6 +26,7 @@ Features that would be nice.
- writing meetings in a diary.
- defining specific meetings (ex : weekly meeting).
- Shibboleth support.
- web services.

-------------------------------------------------------------------------------
RdvZ evolution.
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/modules/meeting/actions/actions.class.php
Expand Up @@ -91,7 +91,7 @@ public function executeSearch(sfWebRequest $request)
$this->meeting = Doctrine::getTable('meeting')->getByHash($request->getParameter('h'));
if(!$this->meeting)
{
$this->getUser()->setFlash('error', 'Aucun rendez-vous ne correspond à ce code.') ;
$this->getUser()->setFlash('error', 'Aucun sondage ne correspond à ce code.') ;
$this->redirect('homepage') ;
}
else
Expand Down
15 changes: 14 additions & 1 deletion apps/frontend/modules/meeting/templates/indexSuccess.php
Expand Up @@ -11,10 +11,23 @@
<?php foreach ($meeting_list as $meeting): ?>
<li class="<?php echo $i++%2 ? 'even' : 'odd' ?>">
<div class="meeting_delete_expires">

<?php if(time() >= strtotime($meeting->getDateEnd()) || $meeting->getClosed()): ?>
<div style="color : red; font-weight: bold;">Votes clos.</div>
<?php else: ?>
<div>Fermeture automatique des votes le <strong><?php echo strftime("%a %d %b %Y", strtotime($meeting->getDateEnd())) ?></strong>.</div>
<?php endif ; ?>

<div>Suppression automatique du sondage le <strong><?php echo strftime("%a %d %b %Y", strtotime($meeting->getDateDel())) ?></strong>.</div>
</div>
<div class="meeting_name"><?php echo $meeting->getTitle() ?></div>
<div class="meeting_name">
<?php if(strlen($meeting->getTitle()) > 27): ?>
<?php echo substr_replace($meeting->getTitle(), '...', 27, strlen($meeting->getTitle())) ; ?>
<?php else: ?>
<?php echo $meeting->getTitle() ; ?>
<?php endif; ?>
</div>

<div class="meeting_code_div"><a href="<?php echo url_for('meeting/show?h='.$meeting->getHash()) ?>">Code du sondage : <span class="meeting_code"><?php echo $meeting->getHash() ?></span></a></div>
<ul class="actions">
<li><a class="no_border" href="<?php echo url_for('meeting/edit?id='.$meeting->getId()) ?>"><img class="icon_16" src="/images/book_16.png" alt="Modifier" /> Modifier</a></li>
Expand Down
7 changes: 7 additions & 0 deletions apps/frontend/templates/layout.php
Expand Up @@ -28,6 +28,13 @@

<?php echo $sf_content ?>
</div>
<div id="user_infos">
<?php if($sf_user->isAuthenticated()): ?>
<?php $usr = Doctrine::getTable('user')->find($sf_user->getProfileVar(sfConfig::get('app_user_id'))) ; ?>
<?php echo $usr->getMail() ?>
<?php echo link_to('<img src="/images/shutdown.png" alt="Déconnexion" />', 'authentication/logout') ?>
<?php endif ; ?>
</div>
<?php include_javascripts() ?>
</body>
</html>
2 changes: 1 addition & 1 deletion lib/form/doctrine/meetingForm.class.php
Expand Up @@ -90,7 +90,7 @@ public function configure()
// 'datee' => 'Dates à retenir <br /><span class="em">(cliquez sur les dates voulues)</span> : '
)) ;

$this->setValidator('title', new sfValidatorString(array('max_length' => 30), array('required' => 'Vous devez donner un titre au rendez-vous.', 'max_length' => 'Le titre ne peut pas excéder 30 caractères, vous pouvez également utiliser la description.'))) ;
$this->setValidator('title', new sfValidatorString(array('max_length' => 100), array('required' => 'Vous devez donner un titre au rendez-vous.', 'max_length' => 'Le titre ne peut pas excéder 100 caractères, vous pouvez également utiliser la description.'))) ;
$this->setValidator('description', new sfValidatorString(array('required' => false))) ;

$this->validatorSchema->setOption('allow_extra_fields', true) ;
Expand Down
27 changes: 26 additions & 1 deletion web/css/main.css
Expand Up @@ -76,6 +76,30 @@ left: 0px;
margin-right : 20px ;
}

#user_infos {
border : 1px solid #B9B9B9 ;
background-color : #F9F9F9 ;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding : 5px ;
/*margin-top : 50px ;*/
margin-left : 10px ;
margin-top : 10px ;
float: left ;
letter-spacing : -1px ;
color : #686868 ;
padding-bottom : 7px ;
-moz-box-shadow: inset 0 -4px 4px rgba(0,0,0,0.05);
-webkit-box-shadow: inset 0 -4px 4px rgba(0,0,0,0.05);
}

#user_infos img {
margin-left : 3px ;
margin-bottom : -4px ;
border-left : 1px solid #d8d8d8 ;
padding-left : 5px ;
}

table#poll td.poll_month {
border : 1px solid grey ;
background-color : #c0c0c0 ;
Expand Down Expand Up @@ -427,10 +451,11 @@ td.tt{
td.tt span{ display: none; }

/*background:; ie hack, something must be changed in a for ie to execute it*/
td.tt:hover{ z-index:25; color: #aaaaff; background:;}
td.tt:hover { z-index:25; color: #aaaaff; }
td.tt:hover span.tooltip{
display:block;
position:absolute;
margin-top : 12px ;
/* top:0px; left:0; */
padding: 15px 0 0 0;
width:200px;
Expand Down
Binary file modified web/favicon.ico
Binary file not shown.
Binary file added web/images/shutdown.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions web/js/poll_comment.js
Expand Up @@ -12,10 +12,12 @@ $(document).ready(function()
}
);
*/
/*
$('td.tt').mouseover(function(e)
{
$(this).children('.tooltip').offset({ top: e.pageY, left: e.pageX }) ;
});
*/

$(/*'.ok, .not_ok'*/'.to_comment').contextMenu('poll_menu', {
menuStyle: {
Expand Down
15 changes: 9 additions & 6 deletions web/js/rdvz.js
Expand Up @@ -30,15 +30,18 @@ $(document).ready(function()

$(".my_meetings").children('li').mouseenter(function()
{
$(this).children('.meeting_name').hide() ;
$(this).children('.meeting_code_div').show() ;
$(this).children('.actions').slideDown('fast') ;
$('.meeting_name', this).hide() ;
$('.meeting_code_div', this).show() ;
$('.actions', this).slideDown('fast') ;
}) ;

$(".my_meetings").children('li').mouseleave(function()
{
$(this).children('.actions').slideUp('fast') ;
$(this).children('.meeting_name').show() ;
$(this).children('.meeting_code_div').hide() ;
$('.actions', this).slideUp('fast') ;
$('.meeting_name', this).show() ;
$('.meeting_code_div', this).hide() ;
}) ;

// A modifier, ça rame pour le moment.
// $('form').nextAll('td').click(function () { $('input:checkbox', this).click(); });
}) ;

0 comments on commit 6a795ce

Please sign in to comment.