rejetto forum
May 25, 2012, 10:26:21 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: checkboxes  (Read 999 times)
0 Members and 1 Guest are viewing this topic.
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« on: February 12, 2011, 10:11:46 AM »

Is there a way to make it so that instead of selecting a <tr> by clicking in the blank space, you could replace that with a checkbox input, that when checked set the <tr> class as selected?

If I just add a checkbox input just inside the <td>, clicking the checkbox will highlight the row, but then if you click on the row, it will become unselected while the checkbox will remain checked, so something else needs to be changed that I don't know how to do.

This would greatly add to the ease of use and functionality of HFS . . .

Thanks,
raybob
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: February 17, 2011, 10:09:08 AM »

i will do this if i can't get a better idea.
thanks
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #2 on: February 17, 2011, 03:39:56 PM »

Since I couldn't put in the checkboxes, I settled for this which works fine; click to select, click to deselect:  Next I will figure out how to make it say 'deselect' when the row is already highlighted.


Code:
[file=folder=link|private]
<tr  class='{.if not|{.or|{.get|can delete.}|{.get|can access.}|{.get|can archive item.}.}|non.}selectable {.if|{.mod|{.count|row.}|2.}|even.}'><td>
{.if|{.get|is new.}|<span class='flag'>&nbsp;NEW&nbsp;</span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a class='the-item' href="%item-url%"><img src="%item-icon%"> %item-name%</a><div style="float:right;"><input type="submit" value="{.!Select.}" style="font-weight:bold;" /></div>
{.if| {.?search.} |{:{.123 if 2|<div class='item-folder'>{.!item folder.} |{.breadcrumbs|{:<a href="%bread-url%">%bread-name%/</a>:}|from={.count substring|/|%folder%.}/breadcrumbs.}|</div>.}:} .}
{.123 if 2|<div class='comment'>|{.commentNL|%item-comment%.}|</div>.}


Screenshot
« Last Edit: February 18, 2011, 03:10:53 PM by raybob95 » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: March 01, 2011, 09:58:20 AM »

no need for it.
try the latest beta
http://www.rejetto.com/forum/index.php/topic,9484.new.html
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #4 on: March 24, 2011, 09:53:17 AM »

What exactly did you change to get the checkboxes?

I can't just copy over the new template because mine is modified and I can't seem to be able to find the new code . . .

Thanks,
Ray
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #5 on: March 24, 2011, 12:33:30 PM »

the template is a sensible part of the features of HFS, so if you go for a personal one, you should consider that you will loose a part of the updates (those regarding the template) or you will have to keep your tpl up to date.

that's why you should try to use the "diff template" feature, and apply just the changes you need, leaving the source template untouched.
Start with a backup of your template, and then try to focus on what you need to change.
If you need to help with this part, let me know.
Logged
rejetto forum
« Reply #5 on: March 24, 2011, 12:33:30 PM »

Do you like this software? Consider even $2
 Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 21, 2012, 05:01:13 PM