

## blobmember.html

<%page args="vectorobj, memberobj, loggedin, blobfolder"/>


<div class="w3-content" style="max-width:70%;margin-top:1vh">
 <div class="w3-row">
  <div class="w3-container w3-quarter">
      <p>${memberobj.label|h}</p>
  </div>
      <div class="w3-container w3-threequarter w3-flat-asbestos">
          % if vectorobj.perm == "wo":
             <p>RX data: --Write Only - nothing to receive--</p>
          % elif not blobfolder:
             <p>RX data: --No BLOB Folder set--</p>
          % elif not memberobj.filename:
             <p>RX data: --Nothing received yet--</p>
          % else:
             <p>RX data: ${memberobj.filename|h}</p>
          % endif
          % if vectorobj.perm == "ro":
             <p>TX data: --Read Only - no send capability--</p>
          % elif not memberobj.user_string:
             <p>TX data: --Nothing sent--</p>
          % else:
             <p>TX data: ${memberobj.user_string|h}</p>
          % endif

  % if vectorobj.perm == "ro" or not loggedin:
      </div>
   % else:
      <div class="w3-container w3-margin">
       <form id='blobform_${memberobj.itemid|h}' hx-encoding='multipart/form-data' hx-post='/vector/blobsend/${vectorobj.itemid|h}/${memberobj.itemid|h}'  hx-target="#result_${vectorobj.itemid}">
        <input id='blobbrowse_${memberobj.itemid|h}' type='file' name='file' class="w3-button w3-black w3-ripple w3-round w3-small" hx-preserve>
        <button class="w3-button w3-black w3-ripple w3-round w3-small">
            Send File
        </button>
       </form>
      </div>
   % endif
   </div>
 </div>
</div>
