smebberson/linz — pull request #53 by sandytrinh (2014-08-19 04:28:30+00:00)
Title: Add the ability to pass in dynamic attributes for the group action anchor tag

This PR adds the ability to further customise a group action inside linz. User will be able to pass in an attributes object to add additional attribute fields for the rendered anchor tag. See below example.

```
groupActions: [
{
label: 'Send group email',
action: 'group-email',
attributes: {
'data-mms-control': 'group-email',
'href': 'mailto:user@example.com'
}
}
]
```

The above DSL would produce the following markup
```
Send group email

```

This PR also check for a new variable ```userModal``` which specify is a group action requires to use a modal e.g. the following example would produce 2 different attribute fields for each of the group action anchor tags, note the missing ```data-linz-control="group-action" data-target="#groupActionModal"``` from the second anchor tag.

```
groupActions: [
{
label: 'Assign BDM',
action: 'assign/bdm',
useModal: true
},
{
label: 'Assign RM',
action: 'assign/rm',
useModal: false
}
]
```

```

Assign BDM

Assign RM

```

@smebberson This is ready for review.