snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Snipe-IT Print All Assigned Edit

Open rhenustr opened this issue 1 year ago • 6 comments

Hi All,

Snipe IT,RHEL is installed on my server, but the form that comes in default is bad, how can I style it, if you have it, will you share it with me @snipe @snipeIT

rhenustr avatar Apr 03 '25 17:04 rhenustr

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

welcome[bot] avatar Apr 03 '25 17:04 welcome[bot]

but the form that comes in default is bad, how can I style it

You'd have to elaborate. What does it look like, what makes it bad, etc. Screenshots would help. Also, @snipeit is an unaffiliated account/organization, so tagging them won't help you.

snipe avatar Apr 03 '25 17:04 snipe

it just feels that way but I want a little more useful, for example

Image

example html code:

Assignment Form
<div class="container">
    <!-- Company Logo -->
    <div class="logo">
        <img src="logo.png" alt="Company Logo">
    </div>

    <h2>ASSIGNMENT FORM</h2>
    
    <table>
        <tr>
            <th colspan="2">Employee Information</th>
        </tr>
        <tr>
            <td>Name Surname</td>
            <td></td>
        </tr>
        <tr>
            <td>Department</td>
            <td></td>
        </tr>
        <tr>
            <td>Manager</td>
            <td></td>
        </tr>
        <tr>
            <td>Title</td>
            <td></td>
        </tr>
    </table>

    <table>
        <tr>
            <th colspan="4">Device Information</th>
        </tr>
        <tr>
            <th>Asset Tag</th>
            <th>Model</th>
            <th>Category</th>
            <th>Serial Number</th>
        </tr>
        <!-- Örnek cihaz bilgisi -->
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <!-- Başka cihaz bilgileri ekleyebilirsiniz -->
    </table>

    <table>
        <tr>
            <th colspan="2">User Information</th>
        </tr>
        <tr>
            <td>Start Date</td>
            <td></td>
        </tr>
        <tr>
            <td>End Date</td>
            <td></td>
        </tr>
    </table>

    <div class="signature">
        <div>
            <strong>Receiver:</strong>
            <span>Name Surname / Signature</span>
        </div>
        <div>
            <strong>Assigner:</strong>
            <span>Name Surname / Signature</span>
        </div>
    </div>
</div>

rhenustr avatar Apr 03 '25 18:04 rhenustr

Different devices have different fields that can/should be shown, or that even exist. This layout would work great just for assets (though it's missing many columns that many people want), also doesn't make sense for accessories or licenses, which is why we have them in their own tables. You can find those files in the app/resources/views directory if you want to mess with them directly, through they'll be overwritten next time you update.

snipe avatar Apr 03 '25 19:04 snipe

do you have a template @snipe ?

rhenustr avatar Apr 03 '25 19:04 rhenustr

The template is in the directory I already mentioned.

snipe avatar Apr 03 '25 19:04 snipe