manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1793241 - in /manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler: editConfiguration_Certificates.html.vm editSpecification_Security.html.vm
Date Sat, 29 Apr 2017 23:50:06 GMT
Author: kishore
Date: Sat Apr 29 23:50:06 2017
New Revision: 1793241

URL: http://svn.apache.org/viewvc?rev=1793241&view=rev
Log:
Updated security tab

Modified:
    manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editConfiguration_Certificates.html.vm
    manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editSpecification_Security.html.vm

Modified: manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editConfiguration_Certificates.html.vm
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editConfiguration_Certificates.html.vm?rev=1793241&r1=1793240&r2=1793241&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editConfiguration_Certificates.html.vm
(original)
+++ manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editConfiguration_Certificates.html.vm
Sat Apr 29 23:50:06 2017
@@ -44,17 +44,16 @@
       </tr>
         #set( $COUNTER = $COUNTER + 1)
       #end
-
-      #if($COUNTER == "0")
-      <tr class="formrow">
-        <td colspan="3">
-          <div class="alert alert-info">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoTrustCertificatesSpecified'))</div>
-        </td>
-      </tr>
-      #end
     </table>
   </div>
 </div>
+#if($COUNTER == "0")
+<div class="row">
+  <div class="col-sm-12">
+    <div class="alert alert-warning">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoTrustCertificatesSpecified'))</div>
+  </div>
+</div>
+#end
 <hr/>
 <div class="row">
   <div class="col-md-4">

Modified: manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editSpecification_Security.html.vm
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editSpecification_Security.html.vm?rev=1793241&r1=1793240&r2=1793241&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editSpecification_Security.html.vm
(original)
+++ manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/editSpecification_Security.html.vm
Sat Apr 29 23:50:06 2017
@@ -17,44 +17,44 @@
 
 #set( $SEQPREFIX = 's' + $SEQNUM + '_' )
 #if($TABNAME == $ResourceBundle.getString('WebcrawlerConnector.Security') && ${SEQNUM}
== ${SELECTEDNUM})
-<table class="displaytable">
-  <tr><td class="separator" colspan="2"><hr/></td></tr>
-  #foreach($TOKEN in $TOKENS)
-    #set( $ACCESSDESC = "_" + $foreach.index )
-    #set( $ACCESSOPNAME = $SEQPREFIX + "accessop" + $ACCESSDESC )
-  <tr>
-    <td class="description">
-      <input type="hidden" name="$ACCESSOPNAME" value=""/>
-      <input type="hidden" name="${SEQPREFIX}spectoken${ACCESSDESC}" value="$Encoder.attributeEscape($TOKEN)"
/>
-      <a name="${SEQPREFIX}token_${foreach.index}">
-        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))"
onClick='Javascript:${SEQPREFIX}SpecOp("$ACCESSOPNAME","Delete","${SEQPREFIX}token_${foreach.index}")'
alt="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteToken'))$foreach.index"/>
-      </a>&nbsp;
-    </td>
-    <td class="value">
-      $Encoder.bodyEscape($TOKEN)
-    </td>
-  </tr>
-  #end
-  #set( $COUNTER = $TOKENS.size() )
-  #if($COUNTER == 0)
-  <tr>
-    <td class="message" colspan="2">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoAccessTokensPresent'))</td>
-  </tr>
-  #end
-  <tr><td class="lightseparator" colspan="2"><hr/></td></tr>
-  <tr>
-    <td class="description">
+<div class="row">
+  <div class="col-md-4">
+    <ul class="list-group">
+    #foreach($TOKEN in $TOKENS)
+      #set( $ACCESSDESC = "_" + $foreach.index )
+      #set( $ACCESSOPNAME = $SEQPREFIX + "accessop" + $ACCESSDESC )
+      <li class="list-group-item">
+        <input type="hidden" name="$ACCESSOPNAME" value=""/>
+        <input type="hidden" name="${SEQPREFIX}spectoken${ACCESSDESC}" value="$Encoder.attributeEscape($TOKEN)"
/>
+        $Encoder.bodyEscape($TOKEN)
+        <span class="pull-right">
+          <button class="btn btn-xs btn-danger" type="button" onClick='Javascript:${SEQPREFIX}SpecOp("$ACCESSOPNAME","Delete","${SEQPREFIX}token_${foreach.index}")'
alt="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.DeleteToken'))$foreach.index"><i
class="fa fa-minus-circle fa-fw" aria-hidden="true"></i>$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.Delete'))</button>
+        </span>
+      </li>
+    #end
+    </ul>
+  </div>
+</div>
+#set( $COUNTER = $TOKENS.size() )
+#if($COUNTER == 0)
+<div class="row">
+  <div class="col-sm-12">
+    <div class="alert alert-warning">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.NoAccessTokensPresent'))</div>
+  </div>
+</div>
+#end
+<hr/>
+<div class="row">
+  <div class="col-md-4 form-inline">
+    <div class="form-group">
       <input type="hidden" name="${SEQPREFIX}tokencount" value="$COUNTER"/>
       <input type="hidden" name="${SEQPREFIX}accessop" value=""/>
-      <a name="${SEQPREFIX}token_${COUNTER}">
-        <input type="button" value="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))"
onClick='Javascript:${SEQPREFIX}SpecAddToken("${SEQPREFIX}token_${COUNTER}")' alt="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddAccessToken'))"/>
-      </a>&nbsp;
-    </td>
-    <td class="value">
-      <input type="text" size="30" name="${SEQPREFIX}spectoken" value="" />
-    </td>
-  </tr>
-</table>
+      <label for="${SEQPREFIX}spectoken" class="sr-only">Token:</label>
+      <input class="form-control" type="text" name="${SEQPREFIX}spectoken" id="${SEQPREFIX}spectoken"
value="" placeholder="Token" />
+    </div>
+    <button class="btn btn-primary" type="button" onClick='Javascript:${SEQPREFIX}SpecAddToken("${SEQPREFIX}token_${COUNTER}")'
title="$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.AddAccessToken'))"><i
class="fa fa-plus-circle fa-fw" aria-hidden="true"></i>$Encoder.attributeEscape($ResourceBundle.getString('WebcrawlerConnector.Add'))</button>
+  </div>
+</div>
 #else
   #foreach($TOKEN in $TOKENS)
     #set( $ACCESSDESC = "_" + $foreach.index )



Mime
View raw message