Design for block with error message

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Jun 21, 2010, 6:00:15 AM6/21/10
to In-Portal Development
We have common HTML code, that is used to display:
  • error message on editing forms
  • search in effect message in grids
  • data changed on editing form
I propose we convert it to "design" block and use in all mentioned placed. This block can also be useful for other purposes too.

This is the code:

<inp2:m_DefineElement name="form_message">
    <table width="100%" border="0" cellspacing="0" cellpadding="4" class="warning-table">
          <tr>
            <td valign="top" class="form-warning">
                <inp2:m_Param name="content"/>
            </td>
          </tr>
    </table>
</inp2:m_DefineElement>

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Phil -- wbtc.fr --

unread,
Jun 21, 2010, 7:14:38 AM6/21/10
to in-por...@googlegroups.com
about error message, I'd suggest a modification I'm using in forms.elm :

<inp2:m_DefineElement name="inp_edit_box" style="" maxlength="" no_editing="1" is_last="0" title="">
        <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>" <inp2:m_if check="{$prefix}_HasError" field="$field">style="background-color:#FFE5E6"</inp2:m_if>>
...

this way the line in error have a -nice- light red background, showing very easily where does the error come from.


2010/6/21 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Jun 21, 2010, 8:18:00 AM6/21/10
to in-por...@googlegroups.com
I was talking about administrative console and the part, where error message text is shown on form top, not each field with an error.

I know, that you already tried to promote your red field background for fields with errors, but with little luck.

Phil -- wbtc.fr --

unread,
Jun 21, 2010, 10:07:18 AM6/21/10
to in-por...@googlegroups.com
:) sorry I didn't understoud it was for admin side ^^

2010/6/21 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Jun 25, 2010, 2:50:39 PM6/25/10
to in-por...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages