[IMP] improve the button style in event kanban view

bzr revid: rma@tinyerp.com-20121004104110-cy7koe2xiqt9xlde
This commit is contained in:
Randhir Mayatra (OpenERP) 2012-10-04 16:11:10 +05:30
parent b385146211
commit c24d52183e
2 changed files with 11 additions and 2 deletions

View File

@ -271,13 +271,14 @@
<t t-if="record.register_avail.raw_value != 0">
<t t-if="!record.is_subscribed.raw_value">
<input t-att-id="record.id.raw_value" type="text" name="subscribe" class="no_of_seats" value="1" onchange="document.getElementById('btn_sub' +this.id).setAttribute('data-context',JSON.stringify({'ticket':this.value}))"/>
<button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="oe_mail_button_follow">
<button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="subscribe_button">
<span >Subscribe</span>
</button>
</t>
</t>
<t t-if="record.is_subscribed.raw_value">
<button type="object" name="unsubscribe_to_event" class="oe_mail_button_unfollow">
<button type="object" name="unsubscribe_to_event" class="unsubscribe_button ">
<span>Subscribed</span>
<span class="unsubscribe">Unsubscribe</span>
</button>
</t>

View File

@ -42,4 +42,12 @@
width:256px;
border: 1px solid #eeeeee;
}
.unsubscribe, .unsubscribe_button:hover span {
display: none;
background-color: #DC5F59
}
.unsubscribe_button:hover .unsubscribe {
display: inline;
background-color: #DC5F59;
}