Sha256: 5a8b8b7aa419e8bd2f4651659c6493a140e745b7cc5c015370e0e5ad5dd8e9d2

Contents?: true

Size: 550 Bytes

Versions: 12

Compression:

Stored size: 550 Bytes

Contents

= effective_form_with(model: [:admin, learndash_user], engine: true) do |f|

  - if f.object.new_record?
    = f.select :owner, {'Owners' => current_user.class.sorted }, polymorphic: true,
      hint: 'Create a LearnDash account for this user'

    = f.submit

  - if f.object.persisted?
    = f.text_field :password, label: 'New Password',
      value: EffectiveLearndash.wp_password_for(learndash_user.owner)

    %p.text-muted
      This action will also update the LearnDash LMS wordpress user account password.

    = f.submit 'Update Password'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_learndash-0.6.1 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.6.0 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.5.2 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.5.1 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.5.0 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.4.0 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.3.3 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.3.2 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.3.1 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.3.0 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.2.1 app/views/admin/learndash_users/_form.html.haml
effective_learndash-0.2.0 app/views/admin/learndash_users/_form.html.haml