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

Feature: Eula Normalization (Variables)

Open SjamonDaal opened this issue 8 years ago • 30 comments

Feature request. Adding a pregmatch formatting to include php requests when building the eula.

Example [{"value":"company;name"}]] == Company Name | (exmple: Awesome Corp)
[{"value":"user;present;fullName"}!] == Checkout User Fullname | (exmple: John Johnson)
[{"value":"item;asset_tag"}]] == Asset Tag | (exmple: AS223311)
[{"type":"date","format":"date","value":"item;last_checkout"}]] == checkout date | (exmple: 23 Jul 2018)

If you format your EULA as By signing this EULA I ('[{"value":"user;present;fullName"}!]') accept to use this asset owned by [{"value":"company;name"}]], and protect this asset with asset tag: '[{"value":"item;asset_tag"}]]' with your life starting from: [{"type":"date","format":"date","value":"item;last_checkout"}]].

The format will result as By signing this EULA I ('John Johnson') accept to use this asset owned by Awesome Corp, and protect this asset with asset tag: 'AS223311' with your life starting from: 23 Jul 2018.

We have already build this so if people are interested in this we will consider upstreaming this to the dev branch.

SjamonDaal avatar Jul 23 '18 14:07 SjamonDaal

Type Variable Notation
Asset Asset Name [[{"value":"item;name"}]]
Asset Asset Tag [[{"value":"item;asset_tag"}]]
Asset Serial Number [[{"value":"item;serial"}]]
Asset Purchase Date [[{"value":"item;purchase_date"}]]
Asset Purchase Cost [[{"value":"item;purchase_cost"}]]
Asset Order Number [[{"value":"item;order_number"}]]
Asset Assigned To [[{"value":"item;assigned_to"}]]
Asset Notes [[{"value":"item;notes"}]]
Asset Image [[{"value":"item;image"}]]
Asset Checkout Date [[{"type":"date","format":"date","value":"item;last_checkout"}]]
Company Name [[{"value":"company;name"}]]
Company image [[{"value":"company;image"}]]
User First Name [[{"value":"user;first_name"}]]
User Last Name [[{"value":"user;last_name"}]]
User Job Title [[{"value":"user;jobtitle"}]]
User Employee Number [[{"value":"user;employee_num"}]]
Accessory Name [[{"value":"item;name"}]]
Accessory Purchase Date [[{"value":"item;purchase_date"}]]
Accessory Purchase Cost [[{"value":"item;purchase_cost"}]]
Accessory Model Number [[{"value":"item;model_number"}]]
Accessory Checkout Date [[{"type":"date","format":"date","value":"item;last_checkout"}]]
License Name [[{"value":"item;name"}]]
License License Key [[{"value":"item;serial"}]]
License Purchase Date [[{"value":"item;purchase_date"}]]
License Purchase Cost [[{"value":"item;purchase_cost"}]]
License Order Number [[{"value":"item;order_number"}]]
License Seats [[{"value":"item;seats"}]]
License Notes [[{"value":"item;notes"}]]
Consumable Name [[{"value":"item;name"}]]
Consumable Quantity [[{"value":"item;qty"}]]
Consumable Purchase Date [[{"value":"item;purchase_date"}]]
Consumable Purchase Cost [[{"value":"item;purchase_cost"}]]
Consumable Order Number [[{"value":"item;order_number"}]]
Consumable Min. Amount [[{"value":"item;min_amt"}]]
Consumable Model Number [[{"value":"item;model_number"}]]
Consumable Item Number [[{"value":"item;item_no"}]]
Consumable Image [[{"value":"item;image"}]]

SjamonDaal avatar Jul 25 '18 12:07 SjamonDaal

I'm not sure this is going to be a priority for us, but I'm leaving it open in case someone else decides to take a stab at it. (Also, there's probably better ways to shorthand those values.)

snipe avatar Jul 25 '18 12:07 snipe

We have a working module for this formatting, I'm documenting some variables now to give some information about how to use it and then I'll send in a Pull Request.

With the documentation it's fairly easy to use, please check it after I've send the Pull Request :)

SjamonDaal avatar Jul 25 '18 12:07 SjamonDaal

Those placeholders aren't very user friendly though. :-/

snipe avatar Jul 25 '18 12:07 snipe

Also what happens when the EULA is being sent for an accessory, which doesn't have an asset tag?

snipe avatar Jul 25 '18 12:07 snipe

How do you suggest we make it more user friendly? :)

SjamonDaal avatar Jul 25 '18 13:07 SjamonDaal

When a value doen't exists the value will be empty. We suggest creating a EULA for each catagory, this way you can add the correct variables for each catagory.

SjamonDaal avatar Jul 25 '18 13:07 SjamonDaal

We suggest creating a EULA for each catagory

Not everybody is going to set it up that way though, which is going to lead to a lot of confusing support tickets.

snipe avatar Jul 25 '18 14:07 snipe

If the documentation of this feature is extremely useful, people will understand how it works. Even tho, if people don't use the EULA per category feature they will probably only use the company name, user name and item name in the EULA.

In our situation, the EULA is a legal contract everybody needs to sign to use there hardware. We use it for everything so we need to have the asset tag, serial number, model number and more in the EULA.

For our company it's really important and I strongly believe that we're not the only one.

SjamonDaal avatar Jul 25 '18 15:07 SjamonDaal

If the documentation of this feature is extremely useful, people will understand how it works.

You're assuming people read the documentation. They don't. Trust me. I've been running this project for 4 years.

The only way I could see this really working is having those variables available through a selector, and the list of variables is dependent on the category type (asset, accessory, etc). So only asset variables show up for asset categories, etc. And with the option of a preview on-screen or via sending a test email. Without those two constraints, there's no way that people won't mess this up and blame the software.

snipe avatar Jul 25 '18 16:07 snipe

Okay, I can easily make that it will only work for the category EULA. I'll check if I can make some time to add a EULA preview block to the edit category blade.

SjamonDaal avatar Jul 25 '18 16:07 SjamonDaal

I found some time to add a preview field and added just some random demo data. Do you like something like this? It's just the start.

image

SjamonDaal avatar Jul 26 '18 14:07 SjamonDaal

Very keen to see where this goes.

Mynty100 avatar Aug 03 '18 03:08 Mynty100

Haven't got any time to work on this lately.

SjamonDaal avatar Sep 04 '18 14:09 SjamonDaal

Got some time to work on this again. I've created buttons that apply to the selected category type. This way the buttons shown are working notations for this eula.

Keep in mind, it's still a beta. screenshot 2018-10-25 at 10 14 32

The buttons are draggable and will place the notation in the textarea where you dropped it. mhbb7luh2i

Any feedback on this? The eula preview now only works after the changes are saved. So the will need to click save and then edit again. Any ideas how we can make the preview realtime?

SjamonDaal avatar Oct 25 '18 09:10 SjamonDaal

Working like a charm now!
Things we've done:

1.

Also what happens when the EULA is being sent for an accessory, which doesn't have an asset tag?

The notation will be replaced with nothing, this removes is from the email and the accept-blade.

2.

The only way I could see this really working is having those variables available through a selector.

Build a selection box, users can now drag and drop notations into the category EULA.

3.

The list of variables is dependent on the category type (asset, accessory, etc).

The Items shown are based on the selected category, the User and Company items are always available.

4.

And with the option of a preview on-screen or via sending a test email.

I've build a preview windows that works but is not optimised. The preview only works after saving the changes and reopening the edit blade.

5.

Okay, I can easily make that it will only work for the category EULA.

The EULA Normalization only works on the category EULA. The default EULA always shows the EULA as plain text/the git notation.

@snipe I'l love to hear what you think about this.

SjamonDaal avatar Oct 26 '18 08:10 SjamonDaal

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Dec 25 '18 17:12 stale[bot]

@SjamonDaal pull request? Looks like you've done lots of work here that I'd like to use.

JoshMcl avatar Dec 31 '18 02:12 JoshMcl

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar Dec 31 '18 02:12 stale[bot]

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Mar 01 '19 02:03 stale[bot]