from django import forms
from django.forms import widgets

from bootstrap.forms import BootstrapForm

from go.conversation.base import ConversationViews


class JavascriptField(forms.CharField):
    widget = widgets.Textarea


class JsboxForm(BootstrapForm):
    javascript = JavascriptField()


JsboxFormSet = forms.formsets.formset_factory(
    JsboxForm, can_delete=True, extra=1)


class JsboxConversationViews(ConversationViews):
    conversation_type = u'jsbox'
    conversation_initiator = u'client'
    edit_conversation_forms = (
        ('handlers', JsboxFormSet),
        )

@@ -293,98 +293,8 @@
 )%0A%0A%0A
-JsboxFormSet = forms.formsets.formset_factory(%0A    JsboxForm, can_delete=True, extra=1)%0A%0A%0A
 clas
@@ -371,16 +371,66 @@
 'jsbox'%0A
+    conversation_display_name = u'Javascript App'%0A
     conv
@@ -454,17 +454,12 @@
 r = 
-u'client'
+None
 %0A   
@@ -521,11 +521,8 @@
 Form
-Set
 ),%0A 

Simplify conversation views setup to remove unnecessary complexity.