Skip to content

Commit

Permalink
actually implement {control type=buttongroup} color & cancel_color su…
Browse files Browse the repository at this point in the history
…pport which had been used in some views and supported within the buttongroupcontrol for some time
  • Loading branch information
dleffler committed Jan 7, 2017
1 parent dbd6d7e commit 1cfd561
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/modules/events/views/event/delete_recurring.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<tr>
<td colspan="2">
{*<input class="{button_style}" type="submit" value="{'Delete Selected'|gettext}" />*}
{control type=buttongroup submit='Delete Selected'|gettext}
{control type=buttongroup submit='Delete Selected'|gettext color=red}
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion framework/modules/file/views/file/deleter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{/foreach}
</tbody>
</table>
{control type=buttongroup submit="Delete Selected Files"|gettext}
{control type=buttongroup submit="Delete Selected Files"|gettext color=red}
{/form}
{else}
{'There don\'t appear to be any missing files'|gettext}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{/foreach}
</tbody>
</table>
{control class=delete type=buttongroup submit="Delete Selected Pages"|gettext onclick="return confirm('"|cat:("Are you sure you want to delete these pages?"|gettext)|cat:"');"}
{control class=delete type=buttongroup submit="Delete Selected Pages"|gettext color=red onclick="return confirm('"|cat:("Are you sure you want to delete these pages?"|gettext)|cat:"');"}
{/form}
</div>

Expand Down
2 changes: 1 addition & 1 deletion framework/modules/photoalbum/views/photo/delete_multi.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{pagelinks paginate=$page bottom=1}
<a class="selectall" href="#" id="sa_conts" onclick="selectAll(1); return false;">{"Select All"|gettext}</a> / <a class="selectnone" href="#" id="sn_conts" onclick="selectAll(0); return false;">{"Select None"|gettext}</a>
{br}{br}
{control type=buttongroup submit="Delete Selected Photo Items"|gettext cancel="Cancel"|gettext}
{control type=buttongroup submit="Delete Selected Photo Items"|gettext color=red cancel="Cancel"|gettext}
{/form}
</ul>
</div>
Expand Down
2 changes: 2 additions & 0 deletions framework/plugins/function.control.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ function smarty_function_control($params, &$smarty) {
//if (isset($params['value'])) $control->default = $params['value'];
if (isset($params['caption'])) $control->caption = $params['caption'];
if (isset($params['description'])) $control->description = $params['description'];
if (isset($params['color'])) $control->color = $params['color'];
if (isset($params['cancel_color'])) $control->cancel_color = $params['cancel_color'];
if (isset($params['size'])) $control->size = $params['size'];
if (isset($params['nowrap'])) $control->nowrap = "nowrap";
if (isset($params['flip'])) $control->flip = $params['flip'];
Expand Down

0 comments on commit 1cfd561

Please sign in to comment.