W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/WebContent/WEB-INF/resources/templates/includes macros_index.vm,NONE,1.1.2.1 macros_xhtml10.vm,NONE,1.1.2.1 unicorn_macros.vm,1.1.2.1,NONE

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 24 Aug 2009 15:43:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mfbhe-0006Ij-TH@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes
In directory hutz:/tmp/cvs-serv24141/WebContent/WEB-INF/resources/templates/includes

Added Files:
      Tag: dev2
	macros_index.vm macros_xhtml10.vm 
Removed Files:
      Tag: dev2
	unicorn_macros.vm 
Log Message:
updated interface


--- unicorn_macros.vm DELETED ---

--- NEW FILE: macros_index.vm ---
#macro(createDropdown $param $multiple)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<select name="$param.Name" #if($multiple) multiple="multiple" size="3" #end>
#foreach ($value in $param.getMapOfValue())
		<option value="$value.Name"#if($defaults.containsKey($value.getName())) selected="selected" #end>$value.getLongName($lang)</option>
#end
	</select>
</label> 
#end

#macro(createCheckboxList $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span></label> 
<span class="checkboxlist">
#foreach ($value in $param.getMapOfValue())
	<label>$value.getLongName($lang)
		<input type="checkbox" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end/>
	</label>
#end
</span>
#end

#macro(createParameter $param)
#set($type = $param.getType())
#if($type == "CHECKBOXLIST")
#createCheckboxList($param)
#elseif($type == "DROPDOWN")
#createDropdown($param, false)
#elseif($type == "DROPDOWNLIST")
#createDropdown($param, true)
#end
#end
--- NEW FILE: macros_xhtml10.vm ---
#macro(error $error)
  <span class="err_type">Error</span>
  <em>#if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end</em>:
  #foreach($message in $error.Message)
    <span class="msg">$message</span>
  #end
  #if($error.Context && $error.Context != "")
    <pre><code class="input">$error.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $error.Longmessage)
      <p>
      	#foreach($longMessagePiece in $longMessage.Content)
			$longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(info $information)
  <span class="err_type">Info</span>
  #if($information.Line)
		<em>Line $information.Line</em>
	#end
	#if($information.Column)
		<em>Column $information.Column</em>:
	#end
  #foreach($message in $information.Message)
    <span class="msg">$message</span>
  #end
  #if($information.Context && $information.Context != "")
    <pre><code class="input">$information.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $information.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(warning $warning)
  <span class="err_type">Warning</span>
  <em>#if($warning.Line)Line $warning.Line #end #if($warning.Column)Column $warning.Column #end</em>:
  #foreach($message in $warning.Message)
    <span class="msg">$message</span>
  #end
  #if($warning.Context && $warning.Context != "")
    <pre><code class="input">$warning.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $warning.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(produceErrors $errors)
    <ol class="error_list">
    #foreach($error in $errors)
      <li class="msg_err">
        #error($error)
      </li>
    #end
    </ol>
#end

#macro(produceWarnings $warnings)
      <ol class="warning_list">
      #foreach($warning in $warnings)
        <li class="msg_warn">
          #warning($warning)
        </li>
      #end
      </ol>
#end

#macro(produceInfos $infos)
    <ol class="info_list">
    #foreach($information in $infos)
      <li class="msg_info">
        #info($information)
      </li>
    #end
    </ol>
#end
Received on Monday, 24 August 2009 15:43:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC